Hi everyone, I have Spring Boot application on which I run coverage check using jacoco-maven-plugin in version 0.7.9. The strange thing I found is that when a class is tested with more then one test class the results are not combined but I get coverage calculated using only one of the test classes.
For example: I have a Service which is covered almost 100% with ServiceTest. And then I have a Controller which depends on Service and a separate ControllerTest which by testing the Controller also touches some bits of the Service class. Now when I run all my tests with JaCoCo I get the coverage of the Service at only about 40% which means only the result of running the ControllerTest were taken into account. And the ServiceTest results were completely ignored although the tests there were executed. So the question is whether there is something wrong here or this is simply how JaCoCo works? -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/655dd70f-d691-4704-bbb4-78f6de761b6f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
