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
Issue #12430: Resolve Pitest suppression for SeparatorWrapCheck #12432
Conversation
@nrmancuso , I am confused which file uri i have to pass for regression configs |
See example PRs in parent issue, you need to create a config in a gist and share raw link |
Github, generate report |
Did i correctly generate report ? |
There is no exception or differences in report, so Do i have to find a new test case ? |
@arinmodi please analyze code and try to determine if we can find a test case, and share analysis here |
Github, generate report |
@nrmancuso, violations found in above report |
Good, please restore code, and create new test case/ test input based on your findings and remove suppression. |
@arinmodi the idea of the report is to find differences in check behavior on a bunch of projects; where we find the differences doesn't matter, we just need to add such code to our tests. |
Got it, That's what I think also, but it's better to ask |
@arinmodi see link on the left of the row to view source file, also see projects file at https://github.com/checkstyle/contribution/blob/master/checkstyle-tester/projects-to-test-on-for-github-action.properties to help you to locate these projects online or clone locally |
cda4a9d
to
8399bb6
Compare
@nrmancuso, Test File Added |
@arinmodi mutation is still surviving, please investigate . Make sure that config that produced violation in regression report is identical to the one in your new input file and that input file code matches. |
@arinmodi when asking for help, it is best to follow a pattern similar to the bug report template using the console:
Example:
This allows others to hopefully reproduce your problem; screenshots are rarely helpful except in the case of website content or some other UI focused issue. |
I am trying to run testCommaOnNewLine test, but I got the following error and checkstyle build failed with following error
|
@arinmodi it looks like you have cleaned but not generated antlr classes. Run |
I am trying to analyze the pitest report but got following error. Command :
Error :
|
@arinmodi make sure that you are using the same version of groovy that we use in CI |
which version ci using ? |
@arinmodi examine pitest execution in CI, all details of installation are there |
53ea197
to
ebc6569
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Items:
...ycrawl/tools/checkstyle/checks/whitespace/separatorwrap/InputSeparatorWrapForTestComma2.java
Outdated
Show resolved
Hide resolved
...ycrawl/tools/checkstyle/checks/whitespace/separatorwrap/InputSeparatorWrapForTestComma2.java
Outdated
Show resolved
Hide resolved
...ycrawl/tools/checkstyle/checks/whitespace/separatorwrap/InputSeparatorWrapForTestComma2.java
Outdated
Show resolved
Hide resolved
519553c
to
c84066c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more item:
57c00c9
to
64b982b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok to merge
@arinmodi please look through other pitest suppression files for |
Not merging yet as I see no CI runs in my view. |
@arinmodi please rebase on latest master, let's see if we can get CI running again |
64b982b
to
b6e5b24
Compare
Done |
By the way, In PR #12317 Kevin is not generating any regression report and still able to find the errors, how he is doing that ? I want to try the same |
He has dealt with other PRs with similar changes. Also looking at the code, sometimes it can just be seen on how to create a case to kill the mutation. Regression is needed if your unsure or production code needs to be changed to resolve the mutation. |
so it requires experience ? |
@arinmodi it requires only careful analysis of code and consideration of all possible inputs; experience is helpful but not required :) |
Issue #12430: Resolve Pitest suppression for SeparatorWrapCheck
Diff Regression config: https://gist.githubusercontent.com/arinmodi/6b46ea3817e1e421ee98eb01f1bed89d/raw/1185fc6ae40afee5804c8ef069c74c06a63cbaba/config.xml