Enable build tools to relocate "target/test-reports-zio/output.json". #10054
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, ZIO Test writes test report into "target/test-reports-zio/output.json"; this location is appropriate when running with sbt - and completely out of place for other build tools (e.g. Gradle).
This pull request introduces a test argument
-reports
(zio.test.TestArgs.reportsParent
) that specifies parent directory oftest-reports-zio/output.json
, enabling build tools running ZIO Test via itssbt.testing.Framework
implementation to place test report in an appropriate location.fixes #10037
Currently,
output.json
is written when running on JVM and Scala Native - but not on Scala.js; this pull request does not change that.Currently, "target/test-reports-zio" directory is also hard-coded as a directory where test debug files
**_debug.txt
are written to (inzio.test.TestDebug
); this pull request does not change that either.