Here is my scenario.
I have a code base, which is built and deployed as EAR on jBoss server.
I have a separate testing framework.
- Now I want to run the classes of that EAR using my testing framework.
- The test cases are written in TestNG.
- Also I want to know the code coverage of the EAR.
- I have used eclEmma to do code coverage for Junits, it was simple as the code and tests are at same place. How can I use Emma in the case of remote code base. Please help.
EclEmma is Eclipse plugin based on JaCoCo - Java Code Coverage Library. JaCoCo provides various ways for collection of code coverage. In particular you can attach it to the server as a Java agent and request information about coverage remotely. And even import and show it in Eclipse using EclEmma.