java - How can I add JaCoCoverage to my Ant build process? -


i have java project in netbeans 7.4. if want run code coverage report using jacocoverage, can right click on project name , select test jacocoverage context menu.

i want trigger same process ant build.xml file. can add ant command make happen? if so, can direct resulting report directory of choice?

something maybe...

<target name="-post-jar">   <!-- run jacocoverage here...-->   <exec executable="jacocoverage"/> </target> 

jacoco has set of ant tasks make straightforward. see documentation.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

c++ - In an add-in in Excel, written in C(++), how does one get the name of the function which called into the addin? -