Question

I am trying to configure SonarQube with Codename One project on Netbeans. I am able to generate code complexity and Rule compliance report. But sonar is unable to identify unit test cases. Any special steps required for unit testing coverage?

Was it helpful?

Solution

I'm not familiar with SonarQube at all so I'm not sure if this will help but Codename One does have a unit test API of its own and test recorder that is probably not supported by SonarQube: http://www.codenameone.com/3/post/2012/12/test-it.html

The reason for not using JUnit and other such harnesses is that they usually rely on reflection to get the job done and that's a problem for on device testing across platforms.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top