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:
Note that these properties must not be overwritten by the test configuration, otherwise the JaCoCo agent cannot be attached. If you need custom parameters please append them. For example:
<argLine>${argLine} -your -extra -arguments</argLine>
Resulting coverage information is collected during execution and by default written to a file when the process terminates.
address, AGENT_ARTIFACT_NAME, append, classDumpDir, dumpOnExit, exclClassLoaders, jmx, output, pluginArtifactMap, port, propertyName, sessionId, SUREFIRE_ARG_LINE, TYCHO_ARG_LINE
Constructor and Description |
---|
AgentMojo() |
Modifier and Type | Method and Description |
---|---|
protected File |
getDestFile() |
createAgentOptions, executeMojo, getAgentJarFile, getEffectivePropertyName, isEclipseTestPluginPackaging, isPropertyNameSpecified
execute, getExcludes, getIncludes, getProject, skipMojo
protected File getDestFile()
getDestFile
in class AbstractAgentMojo
Copyright © 2013. All rights reserved.