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()
|
||||
maxParallelForks = max(1, cpus - 1)
|
||||
setForkEvery(4)
|
||||
ignoreFailures = true
|
||||
}
|
||||
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask<*>>().configureEach {
|
||||
|
@ -202,8 +201,20 @@ 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 {
|
||||
excludeSourceSets {
|
||||
|
||||
excludeSourceSets {
|
||||
names("aot")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue