mirror of https://github.com/usbharu/Hideout.git
chore: カバレッジ計測時のみテストを失敗しないように
This commit is contained in:
parent
ad25a45c42
commit
8ea8a6b00f
|
@ -32,7 +32,6 @@ tasks.withType<Test> {
|
||||||
val cpus = Runtime.getRuntime().availableProcessors()
|
val cpus = Runtime.getRuntime().availableProcessors()
|
||||||
maxParallelForks = max(1, cpus - 1)
|
maxParallelForks = max(1, cpus - 1)
|
||||||
setForkEvery(4)
|
setForkEvery(4)
|
||||||
ignoreFailures = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask<*>>().configureEach {
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask<*>>().configureEach {
|
||||||
|
@ -202,7 +201,19 @@ configurations.matching { it.name == "detekt" }.all {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
project.gradle.taskGraph.whenReady {
|
||||||
|
println(this.allTasks)
|
||||||
|
this.allTasks.map { println(it.name) }
|
||||||
|
if (this.hasTask(":koverGenerateArtifact")) {
|
||||||
|
println("has task")
|
||||||
|
val task = this.allTasks.find { it.name == "test" }
|
||||||
|
val verificationTask = task as VerificationTask
|
||||||
|
verificationTask.ignoreFailures = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
kover {
|
kover {
|
||||||
|
|
||||||
excludeSourceSets {
|
excludeSourceSets {
|
||||||
names("aot")
|
names("aot")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue