@Incubating open class JacocoTaskExtension
Extension for tasks that should run with a Jacoco agent to generate coverage execution data.
class Output
The types of output that the agent can use for execution data. |
JacocoTaskExtension(project: Project, agent: JacocoAgentJar, task: JavaForkOptions)
Creates a Jacoco task extension. |
open fun getAddress(): String
IP address or hostname to use with |
|
open fun getAgentClasspath(): FileCollection
The Jacoco agent classpath. This contains only one file - the agent jar. |
|
open fun getAsJvmArg(): String
Gets all properties in the format expected of the agent JVM argument. |
|
open fun getClassDumpDir(): File
Path to dump all class files the agent sees are dumped to. Defaults to no dumps. |
|
open fun getDestinationFile(): File
The path for the execution data to be written to. |
|
open fun getExcludeClassLoaders(): MutableList<String>
List of classloader names that should be excluded from analysis. Names can use wildcards (* and ?). Defaults to an empty list. |
|
open fun getExcludes(): MutableList<String>
List of class names that should be excluded from analysis. Names can use wildcard (* and ?). Defaults to an empty list. |
|
open fun getIncludes(): MutableList<String>
List of class names that should be included in analysis. Names can use wildcards (* and ?). If left empty, all classes will be included. Defaults to an empty list. |
|
open fun getOutput(): Output
The type of output to generate. Defaults to |
|
open fun getPort(): Int
Port to bind to for |
|
open fun getSessionId(): String
An identifier for the session written to the execution data. Defaults to an auto-generated identifier. |
|
open fun isAppend(): Boolean
Whether or not data should be appended if the |
|
open fun isDumpOnExit(): Boolean
Whether or not to dump the coverage data at VM shutdown. Defaults to |
|
open fun isEnabled(): Boolean
Whether or not the task should generate execution data. Defaults to |
|
open fun isIncludeNoLocationClasses(): Boolean
Whether or not classes without source location should be instrumented. Defaults to |
|
open fun isJmx(): Boolean
Whether or not to expose functionality via JMX under |
|
open fun setAddress(address: String): Unit |
|
open fun setAppend(append: Boolean): Unit |
|
open fun setClassDumpDir(classDumpDir: File): Unit
Sets path to dump all class files the agent sees are dumped to. Defaults to no dumps. |
|
open fun setDestinationFile(destinationFile: Provider<File>): Unit
Set the provider for calculating the destination file. open fun setDestinationFile(destinationFile: File): Unit |
|
open fun setDumpOnExit(dumpOnExit: Boolean): Unit |
|
open fun setEnabled(enabled: Boolean): Unit |
|
open fun setExcludeClassLoaders(excludeClassLoaders: MutableList<String>): Unit |
|
open fun setExcludes(excludes: MutableList<String>): Unit |
|
open fun setIncludeNoLocationClasses(includeNoLocationClasses: Boolean): Unit |
|
open fun setIncludes(includes: MutableList<String>): Unit |
|
open fun setJmx(jmx: Boolean): Unit |
|
open fun setOutput(output: Output): Unit |
|
open fun setPort(port: Int): Unit |
|
open fun setSessionId(sessionId: String): Unit |