Enable build tools to relocate "target/test-reports-zio/output.json".#10054
Merged
kyri-petrou merged 1 commit intozio:series/2.xfrom Jul 28, 2025
Merged
Enable build tools to relocate "target/test-reports-zio/output.json".#10054kyri-petrou merged 1 commit intozio:series/2.xfrom
kyri-petrou merged 1 commit intozio:series/2.xfrom
Conversation
0043cef to
d59f9ac
Compare
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 of `test-reports-zio/output.json`, enabling build tools running ZIO Test via its `sbt.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 (in `zio.test.TestDebug`); this pull request does not change that either.
d59f9ac to
8a54fc0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.Frameworkimplementation to place test report in an appropriate location.fixes #10037
Currently,
output.jsonis 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.txtare written to (inzio.test.TestDebug); this pull request does not change that either.