-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[java] Improve rule tests with auxclasspath #2649
Copy link
Copy link
Open
Labels
an:enhancementAn improvement on existing features / rulesAn improvement on existing features / rulesin:testingAbout tests of pmd, eg the module pmd-lang-test or pmd-test [test]About tests of pmd, eg the module pmd-lang-test or pmd-test [test]
Metadata
Metadata
Assignees
Labels
an:enhancementAn improvement on existing features / rulesAn improvement on existing features / rulesin:testingAbout tests of pmd, eg the module pmd-lang-test or pmd-test [test]About tests of pmd, eg the module pmd-lang-test or pmd-test [test]
Type
Fields
Give feedbackNo fields configured for issues without a type.
We use simply the current test-runtime-classpath as an auxclasspath. That's why we need to add additional test dependencies, that we don't really use, just so that we have them available for the rule tests.
We could improve this by using the
m-dependency-pto fetch the needed dependencies into a special folder./target/rule-test-libs/and use that as auxclasspath inRuleTst.Originally posted by @oowekyala in #2629