I am trying to generate a report on code coverage for my functional test cases of one module(java project). I am trying to do it from command line. Basically I run a shell script to run my application and I am adding the below arguments in the shell script so that I can create jacoco.exec file, which could be later converted to HTML report.
-javaagent:/root/jacoco/lib/jacocoagent.jar=destfile=/root/jacoco/data/jacoco.exec
Why is jacoco.exec file being created empty?