public class AgentMojo extends AbstractAgentMojo
Prepares a property pointing to the JaCoCo runtime agent that can be passed as a VM argument to the application under test. Depending on the project packaging type by default a property with the following name is set:
If your project already uses the argLine to configure the surefire-maven-plugin, be sure that argLine defined as a property, rather than as part of the plugin configuration. For example:
<properties> <argLine>-your -extra -arguments</argLine> </properties> ... <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <!-- Do not define argLine here! --> </configuration> </plugin>
Resulting coverage information is collected during execution and by default written to a file when the process terminates.
Constructor and Description |
---|
AgentMojo() |
executeMojo, skipMojo
execute, getExcludes, getIncludes, getProject
Copyright © 2015. All rights reserved.