-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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 #13809: Kill mutation ConfigurationLoader2 #13900
Conversation
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
src/test/java/com/puppycrawl/tools/checkstyle/ConfigurationLoaderTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/puppycrawl/tools/checkstyle/ConfigurationLoaderTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/puppycrawl/tools/checkstyle/ConfigurationLoaderTest.java
Outdated
Show resolved
Hide resolved
0c056e1
to
8e5d371
Compare
Kevin requested help on my comments , we need to help him. |
1e73851
to
8e5d371
Compare
your code is correct by it is really hard to understand why this works like this. lets make test full functional.
load this config as it is done at checkstyle/src/test/java/com/puppycrawl/tools/checkstyle/ConfigurationLoaderTest.java Line 81 in bd3a9bb
and confirm that property is set to default value. |
8e5d371
to
62ca8b0
Compare
12e2e6d
to
877fb72
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.
I updated code to required state
877fb72
to
ceefdd6
Compare
Github, generate website |
@@ -769,4 +769,24 @@ public void testLoadConfiguration3() throws Exception { | |||
.contains("query"); | |||
} | |||
} | |||
|
|||
@Test | |||
public void testDefaultValuesForNonDefinedProperties() throws Exception { |
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.
Why can't this test be written in our normal format?
@romani Don't we require javadoc for custom tests?
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.
Whole test class is not using our general format. I still do not feel good to migrate this also to our general for modules format.
Tests are very similar to each other.
@@ -244,6 +244,11 @@ | |||
</module> | |||
</source> | |||
|
|||
<p> | |||
ATTENTION: default value is applied to module property value if at least one expansion | |||
property is not defined. |
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.
I assume this is referring to property values with multiple expansions in a single property?
This needs to be expanded. In addition why don't we add an example?
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.
Not only multiple expansion, any .
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.
I thought about example, but it is not easy to explain and might be too technical, and looks like nobody dealing with this, so we found this nuance only during pitest.
I think we don't need to make our doc to be too much extended and hard to read.
Issue #13809: Kill mutation ConfigurationLoader2
Test