cobertura-runtime:instrument

Full name:

ch.elca.el4j.maven.plugins:maven-cobertura-runtime-plugin:3.1:instrument

Description:

Goal to instrument class files with cobertura stuff.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Binds by default to the lifecycle phase: test-compile.

Required Parameters

Name Type Since Description
fileListExcludes String - Comma separated excludes for the files list.
Default value is: **/*Test.class.
fileListIncludes String - Comma separated includes for the files list.
Default value is: **/*.class.
includeTestFiles boolean - Is true if the test files should be instrumented too. Default is false.
Default value is: false.

Optional Parameters

Name Type Since Description
ignoredMethods String - Comma separated list of methods to ignore for instrumentation. By default no method is ignored.

Parameter Details

fileListExcludes:

Comma separated excludes for the files list.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${cobertura-runtime.fileListExcludes}
  • Default: **/*Test.class

fileListIncludes:

Comma separated includes for the files list.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${cobertura-runtime.fileListIncludes}
  • Default: **/*.class

ignoredMethods:

Comma separated list of methods to ignore for instrumentation. By default no method is ignored.
  • Type: java.lang.String
  • Required: No
  • Expression: ${cobertura-runtime.ignoredMethods}

includeTestFiles:

Is true if the test files should be instrumented too. Default is false.
  • Type: boolean
  • Required: Yes
  • Expression: ${cobertura-runtime.includeTestFiles}
  • Default: false