Mailing List was added back to the list of recipients, in future please
post message to the group instead of sending private emails.

Make sure that you correctly specify directory with classes during
generation of report.
Make sure that you don't have warnings during generation of report.
Make sure that exact same class files are used at runtime and during
generation of report - see
http://www.jacoco.org/jacoco/trunk/doc/classids.html for more details, in
particular:

How can I detect that I have a problem with class ids?

The typical symptom of class id mismatch is classes not shown as covered
although they have been executed during the test. This situation can be
easily detected e.g. in the HTML report: Open the *Sessions* page with the
link on the top-right corner. You see a list of all classes where execution
data has been collected for. Find the class in questions and check whether
the entry has a link to the corresponding coverage report page. If the
entry is not linked this means there is a class id mismatch between the
class used at runtime and the class provided to create the report.

On Mon, May 15, 2017 at 2:01 PM Vasanth Kasirajn <[email protected]>
wrote:

> Hi
>
> Thanks for your update.
>
> In our case, We have been doing graceful shutdown both JVM and Jboss. Once
> we shutdown the JVM we are getting jacoco.exec file around 635kb. However
> when check for coverage its showing 0%.
>
> We are accessing all the class files before terminate the TVM.
>
> On Thu, May 11, 2017 at 5:36 PM, Evgeny Mandrikov <[email protected]>
> wrote:
>
>> Hi,
>>
>> JaCoCo always creates dump file at startup to guarantee that location is
>> writable. Then it registers standard JVM Shutdown hook ( see
>> http://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html#addShutdownHook(java.lang.Thread)
>> ) that will write all collected information, but whose execution not
>> guaranteed if JVM was not gracefully terminated. So the first thing to
>> check - is that you terminate JBoss gracefully.
>>
>> On Thursday, May 11, 2017 at 1:18:32 PM UTC+2, [email protected]
>> wrote:
>>>
>>> Hi Team
>>>
>>> We have deployed an application to the Jboss node and configured jacoco
>>> properties as mentioned below.
>>>
>>>
>>> JACOCO_PROPERTIES=-javaagent:/mnt/home/devdepft/jacoco/lib/jacocoagent.jar=destfile=/export/home/devdepft/jboss-as/bin/Jacoco_files/TN/jacoco.exec,append=true,includes=*,output=file
>>>
>>> when shutdown the node we are getting .exec file with some content
>>> inside. however if we try for coverage report it shows 0%.
>>>
>>> Could you please help on this.
>>>
>>> Java Version: 1.7
>>> Jboss: 5.4
>>> OS=RHEL 6.9
>>>
>>>
>
>
> --
> Thanks
> Vasanth
>
>

-- 
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/CAEPFu68_V-YKG%2B63ZpomEH3DV6JkiUQz6tXjtUkFm%3DcXPFS9YA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to