You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run my junit tests, they produce pacts under builld/pacts/*.json. I'd expect that if I run ./gradlew --build-cache clean test twice in a row that my pacts would still be there when I pull the test task from the cache.
This currently doesn't happen unless I tell the test task to save the pacts as an output:
outputs.dir("${projectDir}/build/pact-tests")
Repro:
Make a Java or Kotlin project with a pact test, Gradle Wrapper + Gradle 8.5, and au.com.dius.pact.consumer:junit5:4.6.7
Use the ./gradlew --build-cache clean test command to test your project and generate the pacts under build/pacts
Rerun the ./gradlew --build-cache clean test and expect your test results and pacts to be populated from the cache
Note that everything is there except the pacts
Expectation:
I'd expect that pacts get cached by default when I use this dependency.
Additionally, if I specify a different output like so:
When I run my junit tests, they produce pacts under
builld/pacts/*.json
. I'd expect that if I run./gradlew --build-cache clean test
twice in a row that my pacts would still be there when I pull the test task from the cache.This currently doesn't happen unless I tell the test task to save the pacts as an output:
outputs.dir("${projectDir}/build/pact-tests")
Repro:
au.com.dius.pact.consumer:junit5:4.6.7
./gradlew --build-cache clean test
command to test your project and generate the pacts underbuild/pacts
./gradlew --build-cache clean test
and expect your test results and pacts to be populated from the cacheExpectation:
I'd expect that pacts get cached by default when I use this dependency.
Additionally, if I specify a different output like so:
I'd expect the results to still be cached by default.
At very least, I think this should be added to the docs
The text was updated successfully, but these errors were encountered: