I tried to generate a jacoco report from command line interface using commands:
classfiles=$(cat files.txt | sed 's/^/--classfiles /g' | tr '\n' ' ')
java -jar "C:\tools\jacoco-0.8.4\lib\jacococli.jar" report "C:\tools\jacoco-0.8.4\Jacoco.exec" ${classfiles} --html report --name jacoco-report --sourcefiles <path>
Here files.txt contains all the jar files of the application.
Issue here is that if I try to generate a report supplying only selective class files through files.txt instead of all the jar files, my expectation is that the final report should only show these selective files and not overall files of the application, however the final report shows all classes and packages irrespective of the files we have supplied to generate a report.
Kindly help in this regards.
Regards
Vineet