Hi,

have you checked our FAQ? How does the sessions page in your report look like?

https://www.jacoco.org/jacoco/trunk/doc/faq.html

Why does a class show as not covered although it has been executed?

First make sure execution data has been collected. For this select the Sessions 
link on the top right corner of the HTML report and check whether the class in 
question is listed. If it is listed but not linked the class at execution time 
is a different class file. Make sure you're using the exact same class file at 
runtime as for report generation. Note that some tools (e.g. EJB containers, 
mocking frameworks) might modify your class files at runtime. Please see the 
chapter about class ids <https://www.jacoco.org/jacoco/trunk/doc/classids.html> 
for a detailed discussion. 


Regards,
-marc



> On 2. Jul 2020, at 17:42, [email protected] wrote:
> 
> I am using jacoco to generate code coverage reports from Squish test cases on 
> my company's java application. I have been using jacoco's command line 
> interface and I am able to generate html reports, however the coverage 
> reported is unchanging regardless of any interaction with the application 
> that I have. I have opened the application several times and interacted with 
> basic functionality, yet the reported coverage remains 0. I have been 
> navigating the the jacoco directory, then executing the following command 
> after the tested application has been run and closed: "java -jar 
> jacococli.jar report C:/path/to/exec/cc_rep_1242.exec --classfiles 
> C:/path/to/classfiles --html  C:/path/to/report --name coverage_report". Any 
> help you can provide is extremely appreciated. Thank you so much
> 
> -- 
> 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/106f0e3e-ca50-4807-aea1-a8d16c97af47o%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/106f0e3e-ca50-4807-aea1-a8d16c97af47o%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/B406BE1A-FA7E-46B3-91BC-1DB918A93C1C%40mountainminds.com.

Reply via email to