Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal: Test code refactors and cleanup #1960

Merged
merged 73 commits into from
Sep 10, 2024
Merged

Internal: Test code refactors and cleanup #1960

merged 73 commits into from
Sep 10, 2024

Conversation

caendesilva
Copy link
Member

@caendesilva caendesilva commented Sep 8, 2024

In addition to refactoring to use helper methods for fluent and shared setup code for mocks, it uses more mocks, and updates the code to support this. It also refactors a bunch of unit tests to use mocks and the unit test case, the latter refactor can save about 200ms per testcase which is quite substantial. Combined this saves about two seconds for the entire unit test run (large improvement, starting at 5.5s to 3.5s)

Also adds some custom static analysis rules to improve the test code quality.

@github-actions github-actions bot added the internal This pull request does not affect package code label Sep 8, 2024
Copy link

codecov bot commented Sep 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (64638fe) to head (66f6a21).
Report is 75 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##              master     #1960   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity      1766      1766           
===========================================
  Files            182       182           
  Lines           4707      4707           
===========================================
  Hits            4707      4707           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@caendesilva caendesilva marked this pull request as ready for review September 10, 2024 10:02
@caendesilva caendesilva merged commit 1eb4502 into master Sep 10, 2024
22 checks passed
@caendesilva caendesilva deleted the test-cleanup branch September 10, 2024 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal This pull request does not affect package code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant