I have two different test execution which resulted in two code coverage 
file (*.exec) and classes got dumped to two different folders.

Below command is failing when I run the report command using java cli mode.

java -jar jacococli.jar report /scratch/jacoco/dump/jacoco/dest/merged.exec 
/scratch/dump/jacoco.exec --classfiles 
"/scratc/jacoco/dump1/jacoco/classes/" "/scratch/jacoco/dump2/class/" --csv 
/scratch/final_report/mycsv.csv --html /scratch/final_report --name "Code 
Coverage"
[INFO] Loading execution data file  
/scratch/jacoco/dump/jacoco/dest/merged.exec  .
[INFO] Loading execution data file  /scratch/dump/jacoco.exec  .
[INFO] Loading execution data file /scratch/kumar/jacoco/fnd/dump/class.
Exception in thread "main" java.io.FileNotFoundException:  
/scratch/jacoco/dump2/class  (Is a directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at 
org.jacoco.cli.internal.core.tools.ExecFileLoader.load(ExecFileLoader.java:72)
at org.jacoco.cli.internal.commands.Report.loadExecutionData(Report.java:99)
at org.jacoco.cli.internal.commands.Report.execute(Report.java:83)
at org.jacoco.cli.internal.Main.execute(Main.java:90)
at org.jacoco.cli.internal.Main.main(Main.java:105)


Please suggest how to pass multiple class path directories for report 
generation.

I'm following the instruction 
from https://www.jacoco.org/jacoco/trunk/doc/cli.html,
where it is mentioned that  "--classfiles <path> location of Java class 
files" is multiple.

Regards,
Kumar


-- 
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/d1a76ee6-32b8-47f9-8aee-10924d112c4bn%40googlegroups.com.

Reply via email to