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

Nested JUnit 5 tests are not included #66

Open
rodm opened this issue Jul 28, 2021 · 0 comments
Open

Nested JUnit 5 tests are not included #66

rodm opened this issue Jul 28, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@rodm
Copy link

rodm commented Jul 28, 2021

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

@TobiX TobiX added the bug Something isn't working label Jul 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants