-
- All Implemented Interfaces:
-
kotlin.Comparable
,org.gradle.api.Task
,org.gradle.api.internal.DynamicObjectAware
,org.gradle.api.internal.IConventionAware
,org.gradle.api.internal.TaskInternal
,org.gradle.api.plugins.ExtensionAware
,org.gradle.api.reporting.Reporting
,org.gradle.api.tasks.VerificationTask
,org.gradle.util.Configurable
public abstract class KotlinTest extends AbstractTestTask
-
-
Field Summary
Fields Modifier and Type Field Description private String
targetName
private Set<String>
excludes
private final Set<String>
includePatterns
private final Set<String>
excludePatterns
private final FileResolver
fileResolver
private final ExecHandleFactory
execHandleFactory
private Boolean
ignoreRunFailures
private final TestTaskReports
reports
private final TestLoggingContainer
testLogging
private final DirectoryProperty
binaryResultsDirectory
private Boolean
ignoreFailures
private final ConventionMapping
conventionMapping
private Boolean
enabled
private final Property<Duration>
timeout
private final TaskStateInternal
state
private Boolean
impliesSubProjects
private final Boolean
hasCustomActions
private final Set<Provider<out BuildService<?>>>
requiredServices
-
Constructor Summary
Constructors Constructor Description KotlinTest()
-
Method Summary
Modifier and Type Method Description final String
getTargetName()
final Unit
setTargetName(@Input() @Optional() String targetName)
final Set<String>
getExcludes()
final Unit
setExcludes(@Deprecated(message = "Use filter.excludePatterns instead.", replaceWith = @ReplaceWith(imports = {}, expression = "filter.excludePatterns")) @Internal() Set<String> excludes)
final Set<String>
getIncludePatterns()
final Set<String>
getExcludePatterns()
FileResolver
getFileResolver()
ExecHandleFactory
getExecHandleFactory()
final Boolean
getIgnoreRunFailures()
final Unit
setIgnoreRunFailures(@Input() Boolean ignoreRunFailures)
final Unit
addRunListener(KotlinTestRunnerListener listener)
-
Methods inherited from class org.gradle.api.tasks.testing.AbstractTestTask
addTestListener, addTestOutputListener, afterSuite, afterTest, beforeSuite, beforeTest, executeTests, getBinResultsDir, getBinaryResultsDirectory, getFilter, getIgnoreFailures, getReports, getTestLogging, onOutput, removeTestListener, removeTestOutputListener, reports, reports, setBinResultsDir, setIgnoreFailures, setTestNameIncludePatterns, testLogging, testLogging
-
Methods inherited from class org.gradle.api.internal.ConventionTask
conventionMapping, conventionMapping, getConventionMapping
-
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects
-
Methods inherited from class org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getTargetName
final String getTargetName()
-
setTargetName
final Unit setTargetName(@Input() @Optional() String targetName)
-
getExcludes
final Set<String> getExcludes()
-
setExcludes
final Unit setExcludes(@Deprecated(message = "Use filter.excludePatterns instead.", replaceWith = @ReplaceWith(imports = {}, expression = "filter.excludePatterns")) @Internal() Set<String> excludes)
-
getIncludePatterns
@Input() final Set<String> getIncludePatterns()
-
getExcludePatterns
@Input() final Set<String> getExcludePatterns()
-
getFileResolver
@Inject() FileResolver getFileResolver()
-
getExecHandleFactory
@Inject() ExecHandleFactory getExecHandleFactory()
-
getIgnoreRunFailures
final Boolean getIgnoreRunFailures()
-
setIgnoreRunFailures
final Unit setIgnoreRunFailures(@Input() Boolean ignoreRunFailures)
-
addRunListener
final Unit addRunListener(KotlinTestRunnerListener listener)
-
-
-
-