Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants