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

Rework unit tests #124

Merged
merged 13 commits into from
Feb 14, 2024
Merged

Rework unit tests #124

merged 13 commits into from
Feb 14, 2024

Conversation

sanderploegsma
Copy link
Contributor

@sanderploegsma sanderploegsma commented Feb 3, 2024

Reworked the unit tests to use the Approvals library for some additional coverage in the JUnit tests. Now each test scenario acts more or less like an integration test for each exercise instead of unit test for a specific analyzer. There is some overlap with the smoke tests this way, but the way I see it we can use these JUnit integration-style tests to cover (most of) all branches and possible approaches, and keep the number of smoke tests a bit smaller.

@sanderploegsma sanderploegsma self-assigned this Feb 3, 2024
@sanderploegsma sanderploegsma added the x:size/large Large amount of work label Feb 3, 2024
@sanderploegsma sanderploegsma marked this pull request as ready for review February 4, 2024 18:21
@sanderploegsma sanderploegsma requested a review from a team as a code owner February 4, 2024 18:21
@sanderploegsma
Copy link
Contributor Author

This is going to conflict with #122 by the way, I would suggest merging that one first, and I'll fix the damage here afterwards.

@sanderploegsma
Copy link
Contributor Author

@ErikSchierboom could you review this one please?

# Conflicts:
#	src/main/java/analyzer/exercises/hamming/HammingAnalyzer.java
#	src/main/java/analyzer/exercises/twofer/TwoferAnalyzer.java
#	src/test/java/analyzer/exercises/hamming/HammingAnalyzerTest.java
#	src/test/java/analyzer/exercises/twofer/TwoferAnalyzerTest.java
#	src/test/resources/scenarios/hamming/DoesNotThrowInConstructor.java
#	src/test/resources/scenarios/hamming/NoCalculationOfHammingDistance.java
#	src/test/resources/scenarios/hamming/NoConditionalInConstructor.java
#	src/test/resources/scenarios/hamming/NoConstructor.java
#	src/test/resources/scenarios/twofer/NoConditionalLogic.java
#	src/test/resources/scenarios/twofer/UsesLambda.java
#	src/test/resources/scenarios/twofer/UsesLoop.java
@sanderploegsma sanderploegsma merged commit e389344 into main Feb 14, 2024
5 checks passed
@sanderploegsma sanderploegsma deleted the rework-unit-tests branch February 14, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:size/large Large amount of work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants