[Gradle] Handle kotlin.tests.individualTaskReports as boolean property
This commit is contained in:
committed by
Space Team
parent
9cefa346bd
commit
cc9a611c13
+2
-2
@@ -235,8 +235,8 @@ internal class PropertiesProvider private constructor(private val project: Proje
|
|||||||
* By default individual test tasks will not fail build if this task will be executed,
|
* By default 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.
|
* also individual html and xml reports will replaced by one consolidated html report.
|
||||||
*/
|
*/
|
||||||
val individualTaskReports: Boolean?
|
val individualTaskReports: Boolean
|
||||||
get() = booleanProperty("kotlin.tests.individualTaskReports")
|
get() = booleanProperty("kotlin.tests.individualTaskReports") ?: false
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allow a user to choose distribution type. The following distribution types are available:
|
* Allow a user to choose distribution type. The following distribution types are available:
|
||||||
|
|||||||
+1
-1
@@ -62,7 +62,7 @@ open class KotlinTestReport : TestReport() {
|
|||||||
|
|
||||||
@get:Input
|
@get:Input
|
||||||
val overrideReporting: Boolean by lazy {
|
val overrideReporting: Boolean by lazy {
|
||||||
projectProperties.individualTaskReports == null
|
!projectProperties.individualTaskReports
|
||||||
}
|
}
|
||||||
|
|
||||||
@Input
|
@Input
|
||||||
|
|||||||
Reference in New Issue
Block a user