Hi,

indeed, JaCoCo is fully based on Java class files for analysis. As long as you 
continue to compile your class files with debug information you will get all 
the tabular information with different coverage metrics. If source files cannot 
be found only the pages with highlighted source are not generated and linked to.

Regards,
-marc


> On 12. Mar 2019, at 17:57, [email protected] wrote:
> 
> I currently have a Maven project with /src/main/java which includes all of my 
> project source and /src/test/java with my tests.
> 
> My POM uses jacoco-maven-plugin and is currently setup with prepare-agent and 
> report goals.
> 
> Right now Jacoco works perfect giving me all detail line numbers and source 
> code highlighting where code was not covered.
> 
> I'm curious can Jacoco do code coverage at all and do it at this level of 
> detail if /src/main/java did not exist and only the built files(eg JAR and 
> classes) existed in /target?
> 
> Appreciate any insight.  Reading the below link seems to indicate this is 
> possible just not seeing how everything should be setup and configured at the 
> project level.
> https://www.eclemma.org/jacoco/trunk/doc/maven.html
> 
> -- 
> 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/f0f56a84-ec07-4b72-88ab-4c2523d1007c%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/6E97E05D-ADB0-4687-AAB7-097F67E24870%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to