Hallo Ondrej,
there is a couple of out-of-the-box solutions to do this:
Regards,
-marc
On 2017-04-03 19:25, Ondrej Zoricak wrote:
Hello guys.I read documentations and I find some examples but I didn't find any example how to write code coverage program using Jacoco API. I need just number of lines which are executed when some external program is running so I expected that my program should build and run this external project and give me some result... but do I need Jacoco plugin for this or how is it working? Thank you for any help.
--
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 jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/8707283c-4baa-4748-9669-f8b5a5968eb8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,
well, if you want to write everything yourself, here are the steps:
Regards,
-marc
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/79f9c2e0-fbda-4543-bf88-0a9ca7ab45ae%40googlegroups.com.
Hi,
if you're new with this I definitely recommend not to write your own integration with JaCoCo. There are out-of-the-box integrations for Maven, Ant and Gradle. Also for report generation. There is no need to use the JaCoCo API at all. There are thousands of projects out there which use these standard tools.
Regards,
-marc