From d171825b5ec981c5d79469ea4fa1b69cd5717090 Mon Sep 17 00:00:00 2001 From: austinried <4966622+austinried@users.noreply.github.com> Date: Sun, 11 Oct 2026 07:02:30 +0000 Subject: [PATCH] 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. --- app/build.gradle.kts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 90938dc6..9e07ef6c 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -189,6 +189,7 @@ tasks.withType().configureEach { testLogging { exceptionFormat = TestExceptionFormat.FULL } + outputs.cacheIf { false } } tasks.register("integrationTest") {