Skip to content

Add support for Parametrised JUnit tests #111

Description

@sandybrownlee

Parametrised JUnit tests currently unsupported. This is because JUnit4 doesn't support them [https://github.com/junit-team/junit4/issues/664] whereas JUnit 5 does.

We'd need to think about what arguments are provided for parameters. There's also stuff like this in Checkstyle's MainTest:

public void testPrintSuppressionAndTabWidthOption(@SysErr Capturable systemErr,
            @SysOut Capturable systemOut) {

where there are parameters, but we have arguments for them.

Besides implementing actual support, these tests are stripped out in:
Project.parseMavenTestReportForModule
Profiler.profileTestSuite
MemoryProfiler.profileTestSuite

UnitTest.fromString will also need adapted to cope with parameters.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions