I don't know if this has been asked before; from a quick search I couldn't find anything relevant, but please do forgive me if I've missed it.
My question is, is there any way to get the .csv report from calling JaCoCo from the command-line? For example, say I have the following:
java -javaagent:/home/jacoco/lib/jacocoagent.jar HelloWorld
Is there any option that can generate the csv report, in addition to the .exec file? Moreover, is there any way of "translating" the .exec binary file to a .csv report, if we are not using Eclipse?
Thanks in advance, and I do apologize again if this has been asked and answered before,
Spyros
First of all, thank you for the prompt response, I really appreciate it :)
My problem is that I'm not very comfortable with building large Java projects yet, so I'm trying to tweak existing makefiles and bash scripts to make things happen. Such an option to be able to generate full reports just using the command-line -javaagent option would be quite helpful imho...:)
Thanks again for all the help, and for the sample Java program you provided me with!
Spyros
Thanks again :) This is the example build.xml I've been using as a template. Anyway, I don't know where things are going wrong - the .exec file seems to be generated and contains data, but the .csv one just contains the names of each column...
Thanks again for all the help :)
Spyros
Again, thanks for all the help,
Spyros
Again, many thanks!
Spyros
Caused by: java.lang.IllegalArgumentException: Unknown agent option "dataFile".
at org.jacoco.agent.rt.internal_b0d6a23.core.runtime.AgentOptions.<init>
(AgentOptions.java:210)
at org.jacoco.agent.rt.internal_b0d6a23.PreMain.premain(PreMain.java:43)
... 6 more
Anyways, thanks for the reply.