This won't work. See documentation:

*Warning:* Imported execution data must be based on the exact same class files that are also used within the Eclipse IDE. If the external launch was based on different class files (e.g. created with different compiler) no coverage will be shown.

http://www.eclemma.org/userdoc/importexport.html

-marc

On 24.09.14 22:22, Issam CHAHID wrote:
Marc,

I'm just taking the jacoco.exec and import it in Eclipse with the "EclEmma Jacoco Code Coverage plugin".
Or with SonarQube...

Regards,
Issam

2014-09-24 21:05 GMT+01:00 Marc R. Hoffmann <[email protected] <mailto:[email protected]>>:

    How do you create the report?

    Regards,
    -marc


    On 24.09.14 17:27, [email protected]
    <mailto:[email protected]> wrote:

        Hello,

        Please i' trying to use jacoco javaagent arg from command line.
        For exemple, i'm compiling my class with "javac MyClass" then
        i do "java -javaagent:/path/to/jacoco/jar MyClass"
        the jacoco.exec is generated, but i get 0 coverage.
        But if i add it as an VM Arg on eclipse and run the
        application from Eclipse, the coverage appear fine.

        Thank you in advance for your help.

        Regards,
        Issam


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