I am trying to get java source code coverage after testing with a GUI based functional test using selenium. what all source (actual application) code( NOT selenium test code) was executed or covered after running the selenium functional tests in java.
Is this can be achieved using Emma or jacoco or any other? Anyone who has done this could please give me an idea to start this ?
Our Java Test Coverage tool can do this.
The process is straightfoward:
You may have a long-running (server) application that doesn't naturally exit; in that case you can't get the test coverage dumped by exiting main because you didn't exit. In this case, you add a call to the tool's DumpTestCoverage() method, at some place in your application that you can cause to be executed by some interaction with the application. Then when you want a snapshot, simply exercise that feature.