[Gradle, MPP] Do not disable individual test task reporting
Do not disable individual test task reporting in order to preserve up-to-date state of successfully executed tests #KT-54787 In Progress
This commit is contained in:
committed by
Space Team
parent
ebb9ea4caa
commit
f3becdcbd9
+8
-16
@@ -214,33 +214,25 @@ abstract class KotlinTestReport : TestReport() {
|
|||||||
ignoreFailures = false
|
ignoreFailures = false
|
||||||
checkFailedTests = true
|
checkFailedTests = true
|
||||||
|
|
||||||
disableIndividualTestTaskReportingAndFailing()
|
disableIndividualTestTaskFailing()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun disableIndividualTestTaskReportingAndFailing() {
|
private fun disableIndividualTestTaskFailing() {
|
||||||
testTasks.forEach {
|
testTasks.forEach { task ->
|
||||||
disableTestReporting(it)
|
task.ignoreFailures = true
|
||||||
|
if (task is KotlinTest) {
|
||||||
|
task.ignoreRunFailures = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
children.forEach { child ->
|
children.forEach { child ->
|
||||||
child.configure {
|
child.configure {
|
||||||
it.checkFailedTests = false
|
it.checkFailedTests = false
|
||||||
it.disableIndividualTestTaskReportingAndFailing()
|
it.disableIndividualTestTaskFailing()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun disableTestReporting(task: AbstractTestTask) {
|
|
||||||
task.ignoreFailures = true
|
|
||||||
if (task is KotlinTest) {
|
|
||||||
task.ignoreRunFailures = true
|
|
||||||
}
|
|
||||||
|
|
||||||
task.reports.html.required.set(false)
|
|
||||||
|
|
||||||
task.reports.junitXml.required.set(false)
|
|
||||||
}
|
|
||||||
|
|
||||||
private class SuppressedTestRunningFailureListener(
|
private class SuppressedTestRunningFailureListener(
|
||||||
private val allListenedTaskParentsPaths: Provider<List<String>>,
|
private val allListenedTaskParentsPaths: Provider<List<String>>,
|
||||||
private val failedTaskPath: String,
|
private val failedTaskPath: String,
|
||||||
|
|||||||
Reference in New Issue
Block a user