Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Nested JUnit 5 tests are not included  #66

@rodm

Description

@rodm

Using SonarQube 8.9 with the Groovy plugin, v1.7 doesn't include unit tests written in Groovy using the new JUnit 5 @Nested annotation. This isn't the case for tests written in Java, I found the following thread and issue. It looks as if the Groovy plugin has the same problem.

I've attached a sample project based on the sample from SONARJAVA-3222 but with unit tests written in Groovy, running the following command should show 2 tests executing and passing but only 1 appears in SonarQube.

./gradlew clean build sonarqube

sample.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions