To avoid implementing junit aggregation in pkl wrappers in different places this PR instead adds a --junit-aggregate-reports flag to return all junit reports as a single file.
Additional flag --junit-aggregate-suite-name is added to allow overriding global test suite name from default pkl-tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/apple/pkl/pull/1056
**Author:** [@gordonbondon](https://github.com/gordonbondon)
**Created:** 4/29/2025
**Status:** ✅ Merged
**Merged:** 6/7/2025
**Merged by:** [@bioball](https://github.com/bioball)
**Base:** `main` ← **Head:** `junit-aggregate`
---
### 📝 Commits (3)
- [`d942993`](https://github.com/apple/pkl/commit/d942993208e84d5e8f74938592d0a87affe2bd9e) Aggregate junit report into one file
- [`1d2cffa`](https://github.com/apple/pkl/commit/1d2cffa08b20b6fa4884dd938de77931130090e8) Formatting
- [`a71e3a1`](https://github.com/apple/pkl/commit/a71e3a1ba139864f352dec2a50515f0c1e9a53f7) Combine into one class
### 📊 Changes
**11 files changed** (+354 additions, -19 deletions)
<details>
<summary>View changed files</summary>
📝 `docs/modules/pkl-cli/pages/index.adoc` (+43 -1)
📝 `docs/modules/pkl-gradle/pages/index.adoc` (+20 -4)
📝 `pkl-cli/src/main/kotlin/org/pkl/cli/CliTestRunner.kt` (+15 -3)
📝 `pkl-cli/src/test/kotlin/org/pkl/cli/CliTestRunnerTest.kt` (+168 -0)
📝 `pkl-commons-cli/src/main/kotlin/org/pkl/commons/cli/CliTestOptions.kt` (+7 -2)
📝 `pkl-commons-cli/src/main/kotlin/org/pkl/commons/cli/commands/TestOptions.kt` (+20 -1)
📝 `pkl-core/src/main/java/org/pkl/core/stdlib/test/report/JUnitReport.java` (+37 -1)
📝 `pkl-core/src/main/java/org/pkl/core/stdlib/test/report/SimpleReport.java` (+2 -1)
📝 `pkl-core/src/main/java/org/pkl/core/stdlib/test/report/TestReport.java` (+11 -2)
📝 `pkl-gradle/src/main/java/org/pkl/gradle/task/ProjectPackageTask.java` (+16 -2)
📝 `pkl-gradle/src/main/java/org/pkl/gradle/task/TestTask.java` (+15 -2)
</details>
### 📄 Description
Some systems require junit report to be in a single file. For example `bazel` https://bazel.build/reference/test-encyclopedia needs single file to be available in `XML_OUTPUT_FILE` path.
To avoid implementing junit aggregation in pkl wrappers in different places this PR instead adds a `--junit-aggregate-reports` flag to return all junit reports as a single file.
Additional flag `--junit-aggregate-suite-name` is added to allow overriding global test suite name from default `pkl-tests`
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/1056
Author: @gordonbondon
Created: 4/29/2025
Status: ✅ Merged
Merged: 6/7/2025
Merged by: @bioball
Base:
main← Head:junit-aggregate📝 Commits (3)
d942993Aggregate junit report into one file1d2cffaFormattinga71e3a1Combine into one class📊 Changes
11 files changed (+354 additions, -19 deletions)
View changed files
📝
docs/modules/pkl-cli/pages/index.adoc(+43 -1)📝
docs/modules/pkl-gradle/pages/index.adoc(+20 -4)📝
pkl-cli/src/main/kotlin/org/pkl/cli/CliTestRunner.kt(+15 -3)📝
pkl-cli/src/test/kotlin/org/pkl/cli/CliTestRunnerTest.kt(+168 -0)📝
pkl-commons-cli/src/main/kotlin/org/pkl/commons/cli/CliTestOptions.kt(+7 -2)📝
pkl-commons-cli/src/main/kotlin/org/pkl/commons/cli/commands/TestOptions.kt(+20 -1)📝
pkl-core/src/main/java/org/pkl/core/stdlib/test/report/JUnitReport.java(+37 -1)📝
pkl-core/src/main/java/org/pkl/core/stdlib/test/report/SimpleReport.java(+2 -1)📝
pkl-core/src/main/java/org/pkl/core/stdlib/test/report/TestReport.java(+11 -2)📝
pkl-gradle/src/main/java/org/pkl/gradle/task/ProjectPackageTask.java(+16 -2)📝
pkl-gradle/src/main/java/org/pkl/gradle/task/TestTask.java(+15 -2)📄 Description
Some systems require junit report to be in a single file. For example
bazelhttps://bazel.build/reference/test-encyclopedia needs single file to be available inXML_OUTPUT_FILEpath.To avoid implementing junit aggregation in pkl wrappers in different places this PR instead adds a
--junit-aggregate-reportsflag to return all junit reports as a single file.Additional flag
--junit-aggregate-suite-nameis added to allow overriding global test suite name from defaultpkl-tests🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.