You're missing --classfiles
for the second directory "/scratch/jacoco/dump2/class/" i.e. java -jar jacococli.jar report /scratch/jacoco/dump/jacoco/dest/merged.exec /scratch/dump/jacoco.exec --classfiles "/scratc/jacoco/dump1/jacoco/classes/" --classfiles "/scratch/jacoco/dump2/class/" --csv /scratch/final_report/mycsv.csv --html /scratch/final_report --name "Code Coverage" On Tuesday, February 9, 2021 at 11:40:57 AM UTC+1 Kumar Dp wrote: > 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/6ac0fd09-f34c-456c-b977-796c8944fe46n%40googlegroups.com.
