[test] Extract xml schema module#3976
Merged
Merged
Conversation
Need a release of nice-xml-messages Need an update to pmd-test Need to add the 'ignored' attribute to schema
(This is backward compatible)
4 tasks
oowekyala
commented
Jul 10, 2022
| <attribute name="regressionTest" type="boolean" default="true"/> | ||
| <attribute name="useAuxClasspath" type="boolean" default="true"/> | ||
|
|
||
| <attribute name="ignored" type="string" default=""> |
Member
Author
There was a problem hiding this comment.
todo change that to bool, rename to disabled like junit 5
For a patch to the thing causing the stackOverflow.
Generated by 🚫 Danger |
adangel
approved these changes
Jul 21, 2022
adangel
left a comment
Member
There was a problem hiding this comment.
Looks good!
I'll do the change "ignored" -> "disabled" and update the release notes
| 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"); |
Member
There was a problem hiding this comment.
FYI - for this "regressionTest" flag, there is also a System.property that can disable the disabling...
I personally never used this. The system property is used here when deciding whether to run the test or not:
And the property "pmd.regress" also not documented: https://pmd.github.io/latest/pmd_userdocs_extending_testing.html
adangel
added a commit
to oowekyala/pmd
that referenced
this pull request
Jul 22, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is to be able to change the schema (#3302) without needing to update the designer as well. The designer will be able to depend on this module without depending on pmd-test (which itself depends on junit and other things). It also cleans up RuleTst which implemented the parsing adhoc.
There is now a copy of the schema in pmd-test and another in pmd-test-schema. The only functional change to the schema is the introduction of an
disabledattribute to replaceisRegressionTest(see #3302).isRegressionTestis still supported but produces a deprecation warning.The PR is currently blocked on #2435. I need a Rule instance to write tests, but there is no language on the classpath. I really really don't want to have to write another dummy language module...update This PR contains #4024, which unblocks it.Related issues
Ready?
./mvnw clean verifypasses (checked automatically by github actions)