开发者

Using emma : Method is getting called but in Code coverage it shows 0% for that file

I am using Emma for code-co开发者_如何转开发verage for my project. In my JUnit test case, I am calling a method but in code coverage report, it shows no coverage for that method which is getting called from testCase.


Check these points:

  1. Set a breakpoint in the method to make sure it is really called.

  2. You can tell emma to omit some classes. Check the config.

  3. Is the class properly instrumented?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜