-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Issue #18024: Resolve Pitest Suppressions - common #18214
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
base: master
Are you sure you want to change the base?
Issue #18024: Resolve Pitest Suppressions - common #18214
Conversation
e4da7ba to
9c9e31f
Compare
romani
left a comment
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:
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <suppressedMutations> | ||
| <mutation unstable="false"> | ||
| <sourceFile>JavadocCommentsLexerUtil.java</sourceFile> |
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.
this class is excluded from jacoco
Line 1017 in 578d206
| <exclude>com.puppycrawl.tools.checkstyle.grammar.JavadocCommentsLexerUtil</exclude> |
so it should be excluded from pitest also.
I think we need something like
Line 3316 in 578d206
| <avoidCallsTo>com.puppycrawl.tools.checkstyle.utils.UnmodifiableCollectionUtil</avoidCallsTo> |
for "common" profile
Line 4562 in 578d206
| <id>pitest-common</id> |
@mahfouz72 , do you agree ?
bdeaa62 to
4e44da2
Compare
romani
left a comment
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:
| @Test | ||
| public void testIsOpenTagNameWithNonSlashToken() { | ||
| final CommonToken token = new CommonToken(JavadocCommentsTokenTypes.TAG_NAME, "p"); | ||
| final boolean result = JavadocCommentsLexerUtil.isOpenTagName(token); | ||
|
|
||
| assertWithMessage("Non-slash token should be considered open tag name") | ||
| .that(result) | ||
| .isTrue(); | ||
| } |
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.
We do not allow pure unit testing.
It is illusion of quality.
Please try to extend Input of existing Checks to kill such mutations.
If that is not possible, it good reason to not make test.
All test should be realistic on valid java classes and javadoc.
It is our biggest limitation that we are not working of non-compiled java sources.
Javadoc is a bit different, we allow some problems, but still we should have real Inputs of javadoc to see "tag without slash"
0a6c17c to
c8961cd
Compare
|
Please keep ci fully green |
6ee65da to
8c94b48
Compare
8c94b48 to
3fbce06
Compare
Issue: #18024
Resolve Pitest Suppressions - common
This PR resolves issue #18024 by killing all 36 mutations from pitest-common-suppressions.xml and removing them from the suppression file.
Changes:
All tests are passing (30 tests total, 0 failures).