Skip to content

Disabled tests (class or method level) not showing in report (JUnit 5) #29

@dberna2

Description

@dberna2

Hi @rieckpil,

I’ve been playing around with it and noticed something: disabled tests (either at the class level or method level) don’t show up in the generated report (I’m running tests with JUnit 5).

Looking into the code, I saw that the check happens in generateHtmlWithThymeleaf:

long disabledTests = TemplateHelpers.countTestsByStatus(classMetrics, "DISABLED");

But since disabled tests never actually run, I guess they never make it into the data that gets reported — which could explain why they’re missing.

So I’m wondering if Is this how it’s supposed to work or could it be a small bug?

If it is a bug, do you think it makes sense to show separate counts (one for disabled classes, one for disabled methods), or just one count that combines both?

Happy to open a PR with a fix once we figure out what makes the most sense. 🛠️

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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