Skip to content

Commit 7d40d45

Browse files
chore(internal): correct cache invalidation for SKIP_MOCK_TESTS
1 parent d7bffd2 commit 7d40d45

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

buildSrc/src/main/kotlin/anthropic.kotlin.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ kotlin {
3333
tasks.withType<Test>().configureEach {
3434
systemProperty("junit.jupiter.execution.parallel.enabled", true)
3535
systemProperty("junit.jupiter.execution.parallel.mode.default", "concurrent")
36+
37+
// `SKIP_MOCK_TESTS` affects which tests run so it must be added as input for proper cache invalidation.
38+
inputs.property("skipMockTests", System.getenv("SKIP_MOCK_TESTS")).optional(true)
3639
}
3740

3841
val ktfmt by configurations.creating

0 commit comments

Comments
 (0)