Release 10.2.2 and later include improvements related to collecting coverage.
In Jtest versions earlier than 10.2.2, you to collect coverage by static instrumentation of class files. Release 10.2.2 (build system plugins 1.2.4) introduced collecting coverage for tests by runtime bytecode instrumentation using Jtest JVM agent. This involved the following changes in the Jtest Plugins for Maven, Gradle, and Ant:
jtest:agent
goal was added.See Testing and Analysis with Maven for details.
jtest-agent
goal was added.See Testing and Analysis with Gradle for details.
jtest:agent
goal was added.See Testing and Analysis with Ant for details.
The jtest:configureAgent goal was removed.
The jtest:loadCoverage goal was removed. Application coverage data is now reported with the following command:
jtestcli -staticcoverage [path to static_coverage.xml file]-runtimecoverage [dir/wint/runtime_coverage/files] -config "builtin://Calculate Application Coverage" |
jtest:monitor
goal was added; see Jtest Goals Reference for Maven for the list of the goal parameters.See Application Coverage for details.