Skip to content

Surefire Discovers one testPlan per testClass, leading to generated reports overwriting each other #47

@Michihalo

Description

@Michihalo

When tests are executed via surefire, they are discovered on a per test-class basis. For each test-class a separate testPlan is created.
The EnhancedLegacyXmlReportGeneratingListener creates one report per testPlan.
It takes the name of the root as the name for the report, which is the engine name (junit-jupiter) in all of those cases.
Surefire itself reports all classes in a separate file.

The problem could possibly be here:
image

I am not a surefire pro, so it is possible the surefire configuration is not correct. Nevertheless, surefire itself is reporting per class and this listener is not. I tried to debug and had the feeling that no special testPlan was created fo the EnhancedLegacyXmlReportGeneratingListener.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions