Only the latest version of SonarQube Community Build is considered active, so you’ll need to update and see if the situation is still replicable before we can help you.
Hi @mfolnovic,
Sorry for the late reply. Are you still experiencing this issue?
Unfortunately, I am unable to reproduce the issue. Could you help us pin down the issue with some more details?
I have tried with the following sample.
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
public class NestedClassIsOK {
@Nested
class NestedTestClass {
@Test
void testSomething() {
// Nothing to worry about
}
}
}
You mention running having the issue both with SonarQube Community Build and SonarQube Cloud. So I am assuming your analysis runs in CI and not with Automtatic analysis. Is that correct?
Are the annotations coming for JUnit? If so which version?
Your answer would really help us address the issue here. So thanks in advance.
Thanks for sharing this new snippet. Unfortunately, I am still unable to reproduce the issue with the new sample.
You mention using the sonar-scanner. Did you manually configure the list of test libraries, under the property sonar.java.test.libraries, to point to the right version of JUnit?
Hey there, just to make sure I investigate in the correct direction, are you also user the sonar-scanner @rahulsom ? Or are you relying on the maven/gradle scanner?
As the issue might be related to broken semantics