-
- All Implemented Interfaces:
-
kotlin.Comparable,org.gradle.api.Task,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.util.Configurable
public class KotlinTestReport extends TestReportAggregates tests reports for kotlin test tasks added by registerTestTask.
Individual test tasks will not fail build if this task will be executed, also individual html and xml reports will replaced by one consolidated html report. This behavior can be disabled by setting
kotlin.tests.individualTaskReportsproperty to true.Aggregate test reports may form hierarchy, for example:
allTest // aggregates all tests
In this case, only topmost aggregate test task will override reporting, event if child tasks will be executed.
-
-
Field Summary
Fields Modifier and Type Field Description private final transient List<AbstractTestTask>testTasksprivate final transient List<TaskProvider<KotlinTestReport>>childrenprivate final BooleanoverrideReportingprivate BooleancheckFailedTestsprivate BooleanignoreFailuresprivate final StringhtmlReportUrlprivate Booleanenabledprivate final Property<Duration>timeoutprivate final TaskStateInternalstateprivate BooleanimpliesSubProjectsprivate final BooleanhasCustomActionsprivate final Set<Provider<out BuildService<?>>>requiredServices
-
Constructor Summary
Constructors Constructor Description KotlinTestReport()
-
Method Summary
Modifier and Type Method Description final List<AbstractTestTask>getTestTasks()final List<TaskProvider<KotlinTestReport>>getChildren()final BooleangetOverrideReporting()final BooleangetCheckFailedTests()final UnitsetCheckFailedTests(@Input() Boolean checkFailedTests)final BooleangetIgnoreFailures()final UnitsetIgnoreFailures(@Input() Boolean ignoreFailures)StringgetHtmlReportUrl()final UnitaddChild(TaskProvider<KotlinTestReport> childProvider)final UnitregisterTestTask(AbstractTestTask task)final UnitcheckFailedTests()final UnitmaybeOverrideReporting(TaskExecutionGraph graph)-
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, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService -
Methods inherited from class org.gradle.api.tasks.testing.TestReport
getDestinationDir, getDestinationDirectory, getTestResultDirs, getTestResults, reportOn, setDestinationDir, setTestResultDirs -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getTestTasks
final List<AbstractTestTask> getTestTasks()
-
getChildren
final List<TaskProvider<KotlinTestReport>> getChildren()
-
getOverrideReporting
@Input() final Boolean getOverrideReporting()
-
getCheckFailedTests
final Boolean getCheckFailedTests()
-
setCheckFailedTests
final Unit setCheckFailedTests(@Input() Boolean checkFailedTests)
-
getIgnoreFailures
final Boolean getIgnoreFailures()
-
setIgnoreFailures
final Unit setIgnoreFailures(@Input() Boolean ignoreFailures)
-
getHtmlReportUrl
@Internal() String getHtmlReportUrl()
-
addChild
final Unit addChild(TaskProvider<KotlinTestReport> childProvider)
-
registerTestTask
final Unit registerTestTask(AbstractTestTask task)
-
checkFailedTests
final Unit checkFailedTests()
-
maybeOverrideReporting
final Unit maybeOverrideReporting(TaskExecutionGraph graph)
-
-
-
-