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

Fixed tests not failing when maxSurviving=0 and typo #858

Merged
merged 1 commit into from
Jan 25, 2021
Merged

Fixed tests not failing when maxSurviving=0 and typo #858

merged 1 commit into from
Jan 25, 2021

Conversation

alexkoltz
Copy link

Currently when maxSurviving is set to 0, an error will still not be thrown due to this restriction if ((threshold > 0) in src/main/java/org/pitest/mutationtest/commandline/MutationCoverageReport.java in throwErrorIfMoreThanMaxSuvivingMutants.

We can safely set it to if ((threshold >= 0) as the default is -1.

This should finish the fixes that were started to address this issue: #269.

Also fixed a typo in that method's name changing throwErrorIfMoreThanMaxSuvivingMutants to throwErrorIfMoreThanMaxSurvivingMutants.

Let me know if any additional information/clarification from me would be helpful.

Thanks!

@hcoles hcoles merged commit 6410c68 into hcoles:master Jan 25, 2021
@hcoles
Copy link
Owner

hcoles commented Jan 25, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants