While analysing test files , junit pre-defined rules are not getting applied

While analysing test files using junit pre-defined rules. Except this rule “TestCases should contain tests” , none of the junit rule is getting applied to the Junit test files. May I know the cause please?

command = ['java', 

This is the command that I’m using. Pre-defined rules are working perfectly for the source files but not for the junit files. Kindly help with this.

1 Like

Same doubt for me as well. Is there any specific version of sonar-scanner and sonarqube server required to support junit pre-defined rules ? Kindly help me with this asap.

If specific version is not required then how can I use that pre-defined rules.