Skip to content

Commit bec508e

Browse files
committed
feat: add glob pattern
1 parent 919f59b commit bec508e

File tree

9 files changed

+803
-127
lines changed

9 files changed

+803
-127
lines changed

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,28 @@ 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+
42+
Support both single file paths and glob patterns.
43+
44+
## Commands
45+
46+
### Default Command
47+
48+
```sh
49+
npx junit-to-ctrf <path-or-glob-pattern> [options]
50+
```
51+
52+
### Convert Command
53+
54+
```sh
55+
npx junit-to-ctrf convert <path-or-glob-pattern> [options]
56+
```
57+
3658
## Options
3759

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

5173
```sh
52-
npx junit-to-ctrf path/to/junit.xml
74+
npx junit-to-ctrf "test-results/**/*.xml"
5375
```
5476

5577
### Specify Output File
5678

5779
Convert a JUnit XML report to a specified output file:
5880

5981
```sh
60-
npx junit-to-ctrf path/to/junit.xml -o path/to/output/ctrf-report.json
82+
npx junit-to-ctrf "test-results/**/*.xml" -o ctrf/combined-report.json
6183
```
6284

6385
### Include Tool Name

0 commit comments

Comments
 (0)