It shall be a nice thing to be able to enable jacoco coverage in EGF build.
Basically, jacoco starts an instrumentation agent before tests, fill a file containing crawled code during the test execution, then aggregate it in a report.
There are two different cases where jacoco could be used: unit tests and integrations ones, where the behaviour is different:
While covering unit tests, jacoco agent must start before the test, put the covering file in one of the tested plugin folder (i.e. /test-reports), the shut after the tested plugin compilation
While covering integration tests, the agent must be started before all itests execution, reporting covered lines in a unique file for all itests to a predefine path (i.e. myjobplugin/it-reports), then shut down after these itests execution.
It shall be a nice thing to be able to enable jacoco coverage in EGF build.
Basically, jacoco starts an instrumentation agent before tests, fill a file containing crawled code during the test execution, then aggregate it in a report.
There are two different cases where jacoco could be used: unit tests and integrations ones, where the behaviour is different:
While covering unit tests, jacoco agent must start before the test, put the covering file in one of the tested plugin folder (i.e. /test-reports), the shut after the tested plugin compilation
While covering integration tests, the agent must be started before all itests execution, reporting covered lines in a unique file for all itests to a predefine path (i.e. myjobplugin/it-reports), then shut down after these itests execution.
Here's the link to integration jacoco with Ant: http://www.eclemma.org/jacoco/trunk/doc/ant.html
🆔 ECLIPSE-433270
👷 charlie.mordant
📅 2014-04-23