How to integrate Emma with Ant?
Base dir
==Source- Containing the source files.
==Classes – Containing all the class files.
==Test – Containing all the JUNit files.
==Lib – Containing all the jar files needed.
The second task in your ant code is to compile all the file source and test files.

Now we have the class files in the classes directory.
Now we are all set to use emmajava. It can be done as follows:
You have to substitute the “MyTestSuite”, with a class that starts your testing. Also include & exclude packages according to your needs. The above code generates both html and txt reports (which are placed in the coverage-report folder that was newly created).
The complete documentation of emmajava can be seen at emma’s site .
0 Comments:
Post a Comment
<< Home