GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — [test] Extract xml schema module by oowekyala · Pull Request #3976 · pmd/pmd Conversation
|
| <attribute name="regressionTest" type="boolean" default="true"/> | ||
| <attribute name="useAuxClasspath" type="boolean" default="true"/> | ||
|
|
||
| <attribute name="ignored" type="string" default=""> |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
todo change that to bool, rename to disabled like junit 5
Sorry, something went wrong.
There was an error while loading. Please reload this page.
For a patch to the thing causing the stackOverflow.
Generated by 🚫 Danger |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
I'll do the change "ignored" -> "disabled" and update the release notes
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| parseBoolAttribute(testCode, "useAuxClasspath", true, err, "Attribute 'useAuxClasspath' is deprecated and ignored, assumed true"); | ||
|
|
||
| boolean ignored = parseBoolAttribute(testCode, "ignored", false, err, null) | ||
| | !parseBoolAttribute(testCode, "regressionTest", true, err, "Attribute ''regressionTest'' is deprecated, use ''ignored'' with inverted value"); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
FYI - for this "regressionTest" flag, there is also a System.property that can disable the disabling...
pmd/pmd-test/src/main/java/net/sourceforge/pmd/testframework/TestDescriptor.java
Lines 121 to 134 in 029b4b2
| public static boolean inRegressionTestMode() { | |
| boolean inRegressionMode = true; // default | |
| try { | |
| // get the "pmd.regress" System property | |
| String property = System.getProperty("pmd.regress"); | |
| if (property != null) { | |
| inRegressionMode = Boolean.parseBoolean(property); | |
| } | |
| } catch (IllegalArgumentException e) { | |
| throw new RuntimeException("Invalid system property 'pmd.regress'", e); | |
| } | |
| return inRegressionMode; | |
| } |
I personally never used this. The system property is used here when deciding whether to run the test or not:
pmd/pmd-test/src/main/java/net/sourceforge/pmd/testframework/RuleTestRunner.java
Line 140 in 029b4b2
| return TestDescriptor.inRegressionTestMode() && !child.isRegressionTest(); |
And the property "pmd.regress" also not documented: https://pmd.github.io/latest/pmd_userdocs_extending_testing.html
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[test] Move pmd-test to java 8
There was an error while loading. Please reload this page.