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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top