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
Post a Comment