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

Reuse spies in Path tests #2826

Merged
merged 1 commit into from Oct 31, 2022
Merged

Reuse spies in Path tests #2826

merged 1 commit into from Oct 31, 2022

Conversation

scordio
Copy link
Member

@scordio scordio commented Oct 31, 2022

Inspired by jacoco/jacoco#1344 (comment):

Also looks like due to the mocking of Paths tons of classes are generated by Mockito every time. Maybe this can be avoided or the mocked instance can be shared across test cases.

I refactored the way spies are created in PathsBaseTest and this was a huge performance improvement, so the file system impact described in #2567 is most likely negligible.

@scordio scordio added this to the 3.24.0 milestone Oct 31, 2022
@github-actions
Copy link

github-actions bot commented Oct 31, 2022

JUnit test results

  3 881 files  ±0    3 881 suites  ±0   57s ⏱️ -59s
18 767 tests ±0  18 748 ✔️ ±0  19 💤 ±0  0 ±0 
18 860 runs  ±0  18 840 ✔️ ±0  20 💤 ±0  0 ±0 

Results for commit 326e6be. ± Comparison against base commit 0aaf2a8.

♻️ This comment has been updated with latest results.

@scordio scordio merged commit f170788 into main Oct 31, 2022
@scordio scordio deleted the path_tests_improvements branch October 31, 2022 21:31
@scordio scordio added type: improvement A general improvement and removed type: refactoring labels Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: improvement A general improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant