Skip to content

Commit ba38581

Browse files
committed
Explain generating test reports in DEV.md
1 parent bf7e217 commit ba38581

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

DEV.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,18 @@ The debug option uses 5005 port by default. It is possible to change it as follo
7474
./mill integration.test.native 'scala.cli.integration.RunTestsDefault.*'
7575
```
7676

77+
#### Generate JUnit test reports
78+
79+
As running tests with mill generates output in a non-standard JSON format, we have a script for converting it to the
80+
more well known JUnit XML test report format which we can then process and view on the CI.
81+
In case you want to generate a test report locally, you can run the following command:
82+
83+
```bash
84+
.github/scripts/generate-junit-reports.sc <test suite title> <test report title> <output-path out/
85+
```
86+
87+
The test should fail when no test reports were found or if no tests were actually run.
88+
7789
#### Generate native packages
7890

7991
Build native packagers:

0 commit comments

Comments
 (0)