Hi,
to create a JaCoCo report (aka "analyze") you need
1) uninstrumented class files used at test execution
2) dumped exec filed
3) optionally source files for highlighted reports
Regards,
-marc
On 11.04.16 21:15, Luis Machado Reis wrote:
Marc
Sorry, but I am nuttz with code sometimes ...
So I can load Jacoco.exec and run Analyzer to get detailed line coverage?
On Mon, Apr 11, 2016 at 3:54 PM, Marc R. Hoffmann
<[email protected] <mailto:[email protected]>> wrote:
Actually for report generation you need the original classes, not
the instrumented ones. Using the latter will fail with an error
message.
So, yes, you can create the report at any point later in time as
long as you have exec files and the corresponding classes.
Regards,
-marc
On 11.04.16 20:34, Luis Machado Reis wrote:
Marc
So I can't use a already generated jacoco.exec file to check line
coverage and I need to this before Jacoco restore instrumented
classes (I instrumented them offline because PowerMock issues).
There is no way to generate a jacco.exec file containing all
verifications to be analyzed later?
On Mon, Apr 11, 2016 at 12:49 AM, Marc R. Hoffmann
<[email protected] <mailto:[email protected]>>
wrote:
Hi,
Generate a report containing package, class, line #,
covered (true|false).
This is exactly what JaCoCo does. If you need APIs please
have look at documentation and examples:
http://www.eclemma.org/jacoco/trunk/doc/api/org/jacoco/core/analysis/package-summary.html
http://www.eclemma.org/jacoco/trunk/doc/examples/java/CoreTutorial.java
but my problem is if I analyze classes it will not cover
code tested with PowerMock.
This is a different story. JaCoCo works on class files and
requires that the class files instrumented at runtime are the
same than the one used while analyzing exec files. Please see
this page for a detailled discussion and possible work-arounds:
http://www.eclemma.org/jacoco/trunk/doc/classids.html
Regards,
-marc
On 11.04.16 01:52, [email protected]
<mailto:[email protected]> wrote:
Hey Folks!
I am working with Jacoco for last 16 months with success
and I am loving it BUT now I jave a special requirement
and I am not getting the desired results because I could
t find parameters or API support
I need:
Generate a report containing package, class, line #,
covered (true|false).
Ok .. we have samples in Jacoco project to how generate
it in API, but my problem is if I analyze classes it will
not cover code tested with PowerMock. Ok! I can get
jacoco.exec file from maven build job and analyze it ...
I got a good number but based on probes ... but I am
still needing line covered true or false.
Any one can help me?
--
You received this message because you are subscribed to a
topic in the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jacoco/i9kHsljdFOo/unsubscribe.
To unsubscribe from this group and all its topics, send an
email to [email protected]
<mailto:jacoco%[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/570B1ED5.4040802%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in
the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jacoco/i9kHsljdFOo/unsubscribe.
To unsubscribe from this group and all its topics, send an email
to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/570BF2E1.9010600%40mountainminds.com
<https://groups.google.com/d/msgid/jacoco/570BF2E1.9010600%40mountainminds.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
Aurea <http://go.aurea.com/e/23432/2015-07-01/2q987t/1165133364>
*Luis Machado Reis* | Software Architect
[email protected] <mailto:[email protected]>
*Skype: *luismachadoreis
www.aurea.com <http://go.aurea.com/e/23432/2015-07-01/2q987t/1165133364>
--
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/CAPKzoZ%2BhXhRUxEkqEsxSMWguGPF%2Bgzt7mmDQNDy3LzjLOg_SQg%40mail.gmail.com
<https://groups.google.com/d/msgid/jacoco/CAPKzoZ%2BhXhRUxEkqEsxSMWguGPF%2Bgzt7mmDQNDy3LzjLOg_SQg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
Marc Hoffmann
[email protected]
_______________________________________________
Mountainminds GmbH & Co. KG
Nussbaumstr. 4 * 80336 Muenchen * Germany
Phone/Fax +49-700-68664637 * 0700-MTNMINDS
Registergericht Muenchen * HRA 80201
Mountainminds Verwaltungs GmbH
Registergericht Muenchen * HRB 143183
Geschaeftsfuehrer Marc Hoffmann
--
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/570BFC91.7020901%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.