title: Jacoco: Find code coverage for external tests
body: <p>I recently used EclEmma plugin in eclipse to find code coverage of JUnits in my application and it worked great.</p>
  
  <p>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).</p>
  
  <p>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.</p>
  
  <p><strong>Is there a way to find code coverage in this case?</strong></p>
  
  <p>My <strong>understanding</strong> 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 <strong>plug</strong> the code coverage tool into my application jar and whenever any code in this jar is called, report will be updated. <strong>Is my understanding correct?</strong></p>
  
  <p>NOTE:
  I am open to use other code coverage tool if this is possible with other tools.</p>