Search code examples
emma

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


I am using Emma for code-coverage 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.


Solution

  • 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?