开发者

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

开发者 https://www.devze.com 2022-12-25 14:20 出处:网络
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 calle

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

精彩评论

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