Automating the execution of coverage tool

32 views
Skip to first unread message

abhay...@gmail.com

unread,
Jun 12, 2017, 2:56:48 AM6/12/17
to JaCoCo and EclEmma Users
Hi,
I'm trying to automate the execution of the coverage tool in eclipse but I'm not sure what commands would be needed to automate this process.
So what the commands must do:
->Open eclipse
->Run the coverage tool on a class
->export coverage report in csv format to a specified location
Is it possible to run such a process from the command prompt?

Evgeny Mandrikov

unread,
Jun 12, 2017, 6:33:41 AM6/12/17
to JaCoCo and EclEmma Users, abhay...@gmail.com
Hi,

You probably don't need an Eclipse for such automation, but a build automation tool such as Ant, Maven, Gradle, etc. EclEmma Eclipse Plugin is based on JaCoCo code coverage library and as stated on http://www.eclemma.org/ - "Eclipse integration has its focus on supporting the individual developer in an highly interactive way. For automated builds please refer to JaCoCo documentation for integrations with other tools." There is Ant Tasks ( http://www.jacoco.org/jacoco/trunk/doc/ant.html ), Maven Plugin ( http://www.jacoco.org/jacoco/trunk/doc/maven.html ), APIs for custom integrations ( http://www.jacoco.org/jacoco/trunk/doc/api/index.html ) , not yet released Command Line Interface ( see http://www.jacoco.org/jacoco/trunk/doc/cli.html ), Gradle plugin ( https://docs.gradle.org/current/userguide/jacoco_plugin.html ) , etc ( http://www.jacoco.org/jacoco/trunk/doc/integrations.html ).
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages