Skip to content

[java] Improve rule tests with auxclasspath #2649

@adangel

Description

@adangel

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-p to fetch the needed dependencies into a special folder ./target/rule-test-libs/ and use that as auxclasspath in RuleTst.

Originally posted by @oowekyala in #2629

Metadata

Metadata

Assignees

No one assigned

    Labels

    an:enhancementAn improvement on existing features / rulesin:testingAbout tests of pmd, eg the module pmd-lang-test or pmd-test [test]

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions