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
Resolve Pitest Issues - AvoidStaticImportCheck #7801
Comments
I am on it. |
1. Pitest Report:https://gaurabdg.github.io/checkstyle-tester-reports/pitest/AvoidStaticImport/com.puppycrawl.tools.checkstyle.checks.imports/AvoidStaticImportCheck.java.html#org.pitest.mutationtest.report.html.SourceFile@46d29511_161 2. Mutated Branch:Hardcoded Mutation Commit: gaurabdg@cd24f3b Since the mutation was 3. Regression Report:https://gaurabdg.github.io/checkstyle-tester-reports/regression/AvoidStaticImport/diff/index.html
Diff found: 0 4. Regression and Code Logic AnalysisAlthough the results of the regression report wasn't useful, I have discovered an UT by analysing the code which tests a particular edge case of But if a specific exclude had a pattern like |
@rnveach Please review. |
…-hardcode-mutation
…-hardcode-mutation
@rnveach Added an UT. Please review |
Pitest report looks good and matches line in issue. Mutated branch is acceptable.
I would personally keep the if and just change the complete condition to Since you have gone on to do more analysis it is not an issue but you should find some way to include all projects in regression. You can have multiple modules in 1 regression run so it isn't an issue. See https://github.com/checkstyle/contribution/tree/master/checkstyle-tester#checkstyle-pitest-regression It is only with running regression on as many projects as possible do we go through all the weird code and such out there to help us solve this issue. |
Since you have found a UT and started a PR, I feel you understand pitest well enough for what needs to be done. This is usually the hardest part when regression fails us. Without a regression example, it is hard to create cases and even scarier to remove code when we are not sure how well it is used or not. We have removed code before thinking it was not needed for pitest and we were later reported with issues from our community that it was needed. If you had not found a test case, we would be walking through the code for a negative case trying to determine if a case could be created or the code could be changed to satisfy the original condition in a new way. In this case the condition was changed to I hope this makes sense for future contributors, but I feel you did this even if my words fail. This is specifically the process I take to work on pitest issues. |
fix is merged. |
Okay, I removed it because of the checks. I'll keep in mind from now on.
I thought that supplying random excludes to each project separately wouldn't help me find anything, so went on to analyse the edge cases instead. But I'll keep this in mind from now on.
A great approach and much more methodic, I'll definitely take this approach from now on, thanks for the guidance. |
Child issue of #7797 ,
This issue specifically focuses on the line
checkstyle/.ci/pitest.sh
Line 76 in abf829f
The text was updated successfully, but these errors were encountered: