-
- 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 TestReport
Aggregates 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.individualTaskReports
property 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>
testTasks
private final transient List<TaskProvider<KotlinTestReport>>
children
private final Boolean
overrideReporting
private Boolean
checkFailedTests
private Boolean
ignoreFailures
private final String
htmlReportUrl
-
Constructor Summary
Constructors Constructor Description KotlinTestReport()
-
Method Summary
Modifier and Type Method Description final List<AbstractTestTask>
getTestTasks()
final List<TaskProvider<KotlinTestReport>>
getChildren()
final Boolean
getOverrideReporting()
final Boolean
getCheckFailedTests()
final Unit
setCheckFailedTests(@Input() Boolean checkFailedTests)
final Boolean
getIgnoreFailures()
final Unit
setIgnoreFailures(@Input() Boolean ignoreFailures)
String
getHtmlReportUrl()
final Unit
addChild(TaskProvider<KotlinTestReport> childProvider)
final Unit
registerTestTask(AbstractTestTask task)
final Unit
checkFailedTests()
final Unit
maybeOverrideReporting(TaskExecutionGraph graph)
-
Methods inherited from class org.jetbrains.kotlin.gradle.testing.internal.KotlinTestReport
generateReport, getBuildOperationExecutor, getDestinationDir, getObjectFactory, getTestResultDirs, reportOn, setDestinationDir, setTestResultDirs
-
Methods inherited from class org.gradle.api.tasks.testing.TestReport
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, 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 org.gradle.api.DefaultTask
appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getReasonNotToTrackState, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects
-
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)
-
-
-
-