'TestCases should contain tests' doesn't recognize TestNG

466 views
Skip to first unread message

thomas....@gmail.com

unread,
Sep 9, 2015, 4:48:07 AM9/9/15
to SonarQube
Hello everybody,

as state in the title: Tests for TestNG are not recognized by the rule 'TestCases should contain tests'.

Example:

import org.testng.annotations.Test;
 
public class BingoBuilderNGTest {
   
@Test
   
public void testCreateNewDraw() {
       
...
   
}
}


SQ says:
Add some tests to this class.

Massimo Paladin

unread,
Sep 9, 2015, 7:28:01 AM9/9/15
to thomas....@gmail.com, SonarQube
Hi Thomas,

ticket created, should be fixed in the next version:

Cheers,

Massimo PALADIN | SonarSource
Software Developer @ Language Team
http://sonarsource.com

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/e0c13fb0-55e7-4b84-90f1-2b1e997d168f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages