@Execute(phase=TEST,
goal="instrument-test",
lifecycle="clover")
@Mojo(name="instrument-test")
public class CloverInstrumentTestMojo
extends CloverInstrumentMojo
This goal behaves exactly like the instrument goal, however when forking the lifecycle - it runs only to the 'test' phase instead of all the way to the 'install' phase.
This goal should be used as an optimization - ie. if the phases after 'test' take a very long time to run.
Instrument all sources using Clover and forks a custom lifecycle to execute project's tests on the instrumented code so that a Clover database is created.
cloveredArtifactExpiryInMillis, copyExcludedFiles, distributedCoverage, encoding, excludes, excludesFile, excludesList, flushPolicy, groverJar, includes, includesAllSourceRoots, includesFile, includesList, includesTestSourceRoots, instrumentation, jdk, methodContexts, methodWithMetricsContexts, repositoryPollutionProtection, scope, setTestFailureIgnore, skipGroverJar, staleMillis, statementContexts, testSources, useCloverClassifier, useFullyQualifiedJavaLangcloverOutputDirectory, debug, license, licenseLocation, skip, snapshot| Constructor and Description |
|---|
CloverInstrumentTestMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
shouldRedirectArtifacts, shouldRedirectOutputDirectoriesfailIfCustomClassifierIsPresent, failIfDeployPhaseIsPresent, failIfInstallPhaseIsPresent, getDistributedCoverage, getEncoding, getExcludes, getFlushPolicy, getIncludes, getInstrumentation, getInstrumentLambda, getJdk, getMethodContexts, getMethodWithMetricsContexts, getStaleMillis, getStatementContexts, getTestSources, isCopyExcludedFiles, isIncludesAllSourceRoots, isUseFullyQualifiedJavaLangareCloverDatabasesAvailable, getCloverDatabase, getCloverMergeDatabase, getDescendantModuleProjects, getFlushInterval, getModuleProjects, getProject, getReactorProjects, getResourceAsFile, getWaitForFlush, isLastProjectInReactor, isModuleOfProject, isSingleCloverDatabase, registerCloverAntTasks, resolveCloverDatabase, setLicense, setLicenseLocation, setProject, waitForFlushgetLog, getPluginContext, setLog, setPluginContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFlushIntervalgetCloverDatabase, getLog, getProject, getReactorProjects, isSingleCloverDatabase, resolveCloverDatabasepublic void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoexecute in class CloverInstrumentMojoorg.apache.maven.plugin.MojoExecutionExceptionAbstractCloverMojo.execute()Copyright © 2019 OpenClover.org. All rights reserved.