Caleb Cushing
09/22/2024, 2:25 PMAdam
09/22/2024, 2:34 PMignoreFailures
https://docs.gradle.org/current/kotlin-dsl/gradle/org.gradle.nativeplatform.test.tasks/-run-test-executable/ignore-failures.html
It's a bit convoluted to access the task for each suite, because suites can have multiple variants (targets), but you can access the task like so:
testing {
suites.withType<JvmTestSuite>().configureEach {
targets.configureEach {
testTask.configure {
ignoreFailures = true
}
}
}
}
Does that help?Caleb Cushing
09/22/2024, 2:36 PMCaleb Cushing
09/22/2024, 2:37 PMAdam
09/22/2024, 2:39 PMAdam
09/22/2024, 2:41 PMtesting {
jvmSuites {
ignoreFailures = true // set the default for all JVM Test tasks
targets.main {
testTask {
ignoreFailures = false // override the default for target named 'main'
}
}
}
}Caleb Cushing
09/22/2024, 2:58 PMtesting {
suites {
val jmolecules by registering(JvmTestSuite::class) {
ignoreFailures = true
}
}
}
sadly I don't think I can test this either way. Unrelated problem, for some reason my test suite which I'd think would be classpath is acting like it's using the module-path... 😕 oh well, lol