I recently used EclEmma plugin in eclipse to find code coverage of JUnits in my application and it worked great.
In the next step, I want to be able to find code coverage for end-to-end tests / functional tests which are called on our application from outside(they reside on a separate server).
Basically, we package our application as a jar (we use maven) and deploy it on a server. And we can trigger the functional tests at this location.
Is there a way to find code coverage in this case?
My understanding of how code coverage tool works (in raw language) is that it loads the classes and generates a report based on the part of code that has been hit. So as per this understanding, I don't need to have access to the test-code. I only need to somehow plug the code coverage tool into my application jar and whenever any code in this jar is called, report will be updated. Is my understanding correct?
NOTE: I am open to use other code coverage tool if this is possible with other tools.