Skip to content

Commit 3f6ff51

Browse files
committed
Merge changes from test/expose-prog
1 parent d96eb91 commit 3f6ff51

13 files changed

+770
-125
lines changed

.github/workflows/main.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,11 @@ jobs:
1818
run: npm install
1919
- name: Build
2020
run: npx tsc
21-
- name: Convert
22-
run: npx junit-to-ctrf test.xml
21+
- name: Run against junit
22+
run: npm run run:junit
23+
- name: Run against minitest
24+
run: npm run run:minitest
25+
- name: Run against surefire
26+
run: npm run run:surefire
27+
- name: Run against glob
28+
run: npm run run:glob

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ Explore more <a href="https://www.ctrf.io/integrations">integrations</a>
3333
npx junit-to-ctrf path/to/junit.xml
3434
```
3535

36+
or glob pattern:
37+
38+
```sh
39+
npx junit-to-ctrf "test-results/**/*.xml"
40+
```
41+
3642
## Options
3743

3844
`-o`, `--output` <output>: Output directory and filename for the CTRF report. If not provided, defaults to ctrf/ctrf-report.json.
@@ -49,15 +55,15 @@ npx junit-to-ctrf path/to/junit.xml
4955
Convert a JUnit XML report to the default CTRF report location (ctrf/ctrf-report.json):
5056

5157
```sh
52-
npx junit-to-ctrf path/to/junit.xml
58+
npx junit-to-ctrf "test-results/**/*.xml"
5359
```
5460

5561
### Specify Output File
5662

5763
Convert a JUnit XML report to a specified output file:
5864

5965
```sh
60-
npx junit-to-ctrf path/to/junit.xml -o path/to/output/ctrf-report.json
66+
npx junit-to-ctrf "test-results/**/*.xml" -o ctrf/combined-report.json
6167
```
6268

6369
### Include Tool Name

0 commit comments

Comments
 (0)