JacocoTaskExtension

abstract class JacocoTaskExtension(source)

Extension for tasks that should run with a Jacoco agent to generate coverage execution data.

Constructors

Link copied to clipboard
@Inject
constructor(objects: ObjectFactory, agent: JacocoAgentJar, task: JavaForkOptions)
Creates a Jacoco task extension.

Types

Link copied to clipboard
enum Output
The types of output that the agent can use for execution data.

Properties

Link copied to clipboard
@get:Nullable
@get:Input
open var address: String
Link copied to clipboard
@get:Nullable
open var classDumpDir: File
Link copied to clipboard
@get:Nullable
@get:Input
open var excludeClassLoaders: List<String>
Link copied to clipboard
@get:Nullable
@get:Input
open var excludes: List<String>
Link copied to clipboard
@get:Nullable
@get:Input
open var includes: List<String>
Link copied to clipboard
Link copied to clipboard
@get:Input
open var port: Int
Link copied to clipboard
@get:Nullable
@get:Input
open var sessionId: String

Functions

Link copied to clipboard
The Jacoco agent classpath.
Link copied to clipboard
Gets all properties in the format expected of the agent JVM argument.
Link copied to clipboard
The path for the execution data to be written to.
Link copied to clipboard
Whether or not to dump the coverage data at VM shutdown.
Link copied to clipboard
open fun isEnabled(): Boolean
Whether or not the task should generate execution data.
Link copied to clipboard
Whether or not classes without source location should be instrumented.
Link copied to clipboard
open fun isJmx(): Boolean
Whether or not to expose functionality via JMX under org.jacoco:type=Runtime.
Link copied to clipboard
open fun setDestinationFile(destinationFile: File)

open fun setDestinationFile(destinationFile: Provider<File>)
Set the provider for calculating the destination file.
Link copied to clipboard
open fun setDumpOnExit(dumpOnExit: Boolean)
Link copied to clipboard
open fun setEnabled(enabled: Boolean)
Link copied to clipboard
open fun setIncludeNoLocationClasses(includeNoLocationClasses: Boolean)
Link copied to clipboard
open fun setJmx(jmx: Boolean)