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
pitest: increase mutation coverage for pitest-checkstyle-common profile to 100% #4400
Comments
@romani, I encountered an issue when fixing mutation on this profile: I think we should use |
@romani, also there is an issue with |
next time please share request for smth new as link. Example http://pitest.org/quickstart/maven/#avoidcallsto . I will speed up my reply.
please share report, please always do this.
did you test this by manual removal of line of code ? |
@romani |
https://nimfadora.github.io/problems/com.puppycrawl.tools.checkstyle.ant/CheckstyleAntTask.java.html
It is known ANT Task property all you need to do is too call setRefId and then check that getRefId return you the same value.
it put smth to output, some test need to check that such sting exists in ant task output
https://github.com/apache/ant/blob/master/src/main/org/apache/tools/ant/DirectoryScanner.java#L822
we have the same condition at |
https://nimfadora.github.io/problems/com.puppycrawl.tools.checkstyle/XMLLogger.java.html
strange that withtout this method we do have content in output.
remove it. Looks like should be covered by |
https://nimfadora.github.io/problems/com.puppycrawl.tools.checkstyle/DefaultConfiguration.java.html If line is covered by test .. it is a bug in pitest, as mutation should be specified for this line. Please open issue on pitest. |
https://nimfadora.github.io/problems/com.puppycrawl.tools.checkstyle/ConfigurationLoader.java.html all cases are from |
https://nimfadora.github.io/problems/com.puppycrawl.tools.checkstyle/Checker.java.html
please remove the same block at
looks like we missed assert on file content of created cache. Please review cache related UTs. Call for all other ... looks like completely missed coverage , please prove that coverege exists, and lets report this to pitest project. |
|
I've tried to do so, but it doen't working. E.g. such test gives me NPE on
I have a feeling that smth wrong with |
It is not happenning cause |
It not working. Tests are failing. Pitest mutation that survived changed |
lets try. |
|
In CheckstyleAntTask, we do:
FileSet is extending AbstractFileSet so we run AbstractFileSet.getDirectoryScanner, but this method do
so our |
Ok.
This test doesn't kill this mutation... Test is green, even if line CheckstyleAntTask.java#L209 is removed |
last fix is merged. |
We created pitest profiles for non-checks code in #4367. Currently, we should increase coverage for
pitest-checkstyle-common
profile up to 100%.This issue is a subtask of #3708
Current threshold of
pitest-checkstyle-common
profile: 78The text was updated successfully, but these errors were encountered: