mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 15:11:58 +01:00
build: stop test results being restored from the build cache
org.gradle.caching=true plus CI restoring ~/.gradle/caches (which holds the local build cache) let GitHub CI restore :app:testDebugUnitTest FROM-CACHE: a re-run reported green without executing a single test. A cached PASS is also unsound while any test is flaky. Mark test tasks uncacheable so every invocation actually runs the tests; up-to-date and incremental behaviour for local dev is unchanged.
This commit is contained in:
@@ -189,6 +189,7 @@ tasks.withType<Test>().configureEach {
|
||||
testLogging {
|
||||
exceptionFormat = TestExceptionFormat.FULL
|
||||
}
|
||||
outputs.cacheIf { false }
|
||||
}
|
||||
|
||||
tasks.register<Test>("integrationTest") {
|
||||
|
||||
Reference in New Issue
Block a user