W dniu poniedziałek, 2 października 2017 18:24:06 UTC+2 użytkownik Evgeny 
Mandrikov napisał:
> And can't say what's wrong in your case in absence of reproducer/example.

Thank you for response Evgeny.

I managed to prepare an example of my case and pinpoint the issue.
https://github.com/juzer/spring-jacoco-demo
It seems to be related to the inheritance hierarchy and abstract classes. I 
have an AbstractService which is tested by instantiating an anonymous class and 
it's covered 100%. Then I have a concrete subclass that is also tested (only 
methods in this class). When I run all the tests however, the coverage of 
AbstractService is 0. Moving all tests to the ServiceTest results in correct 
coverage report - 100% on both classes.

Is there anything special about how JaCoCo treats abstract classes?

-- 
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/793ff289-4958-4392-a72e-befd637ef888%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to