How do I setup an Ant task to generate Emma code coverage reports?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To answer questions about where the source and instrumented directories are (these can be switched to whatever your standard directory structure is):
Classpaths:
First you need to setup where Ant can find the Emma libraries:
Then import the task:
Then instrument the code:
Then run a target with the proper VM arguments like:
Finally generate your report: