Hi Nicolas, JaCoCo works on byte code only. It doesn’t matter whether the byte code comes from the compiler or obfuscator. Of you create an report on the obfuscated code the result will probably not very readable though.
If you see coverage on a class “com.xxx.User” this means a class with exact this name was loaded in the JVM when coverage data was collected. Regards, -marc > On 7. Oct 2022, at 16:26, Nicolas Garcin <[email protected]> > wrote: > > Hi everyone, > > Our software is written in Java and (partly) obfuscated. We're measuring our > test coverage with Jacoco agent. I'm surprised to see that Jacoco manages to > calculate coverage even on obfusacted code. For example, I have a > com.xxx.User.class that is obfuscated into a.b.c.class. The obfuscated class > is used at runtime and I can see in the coverage report some coverage on > com.xxx.User.class. How is that possible ? > > Thanks and Regards, > Nicolas > > -- > 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] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/7dae77f8-7d63-43e2-8d10-3314a69420een%40googlegroups.com > > <https://groups.google.com/d/msgid/jacoco/7dae77f8-7d63-43e2-8d10-3314a69420een%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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/61253AB6-9F91-4F6F-9F8F-A7CF00AA8A59%40mountainminds.com.
