Skip to content

Add support for Parametrised JUnit tests #111

@sandybrownlee

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions