If the entries from the sessions page are not linked this means that the classes seen by the JaCoCo agent are different from the classes used at report generation.

Make sure you use the exact same class files at both ends. Please find additional information here: http://www.eclemma.org/jacoco/trunk/doc/classids.html


     What can cause different class ids?

Class ids are identical for the exact same class file only (byte-by-byte). There is a couple of reasons why you might get different class files. First compiling Java source files will result in different class files if you use a different tool chain:

 * Different compiler vendor (e.g. Eclipse vs. Oracle JDK)
 * Different compiler versions
 * Different compiler settings (e.g. debug vs. non-debug)

Also post-processing class files (obfuscation, AspectJ, etc.) will typically change the class files. JaCoCo will work well if you simply use the same class files for runtime as well as for analysis. So the tool chain to create these class files does not matter.

Even if the class files on the file system are the same there is possible that classes seen by the JaCoCo runtime agent are different anyways. This typically happens when another Java agent is configured /before/ the JaCoCo agent or special class loaders pre-process the class files. Typical candidates are:

 * Mocking frameworks
 * Application servers
 * Persistence frameworks



On 10.11.14 09:40, Sobhana Akula wrote:
The services are deployed in Weblogic server , I include javaagent in setDomainenv.sh In the sessions link on the top right corner of report generated i have my class in the list of executed classes , but it is shown in black .I dont understand what am I missing , Thanks

On Sun, Nov 9, 2014 at 8:28 PM, Marc R. Hoffmann <[email protected] <mailto:[email protected]>> wrote:

    It would be helpful to know how your services are deployed. What
    you need to do is to configure the JaCoCo agent for the JVM which
    host your services.

    Regards,
    -marc


    On 07.11.14 10:02, [email protected]
    <mailto:[email protected]> wrote:


        Can Someon please help me in knowing how to use jacoco tool
        for restful services , Our tests are rest client accessing the
        rest services , How to know what percentage of code is being
        covered by my tests? Thanks in advance


--
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to