Skip to content

Test/expose prog #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@ jobs:
run: npm install
- name: Build
run: npx tsc
- name: Convert
run: npx junit-to-ctrf test.xml
- name: Run against junit
run: npm run run:junit
- name: Run against minitest
run: npm run run:minitest
- name: Run against surefire
run: npm run run:surefire
- name: Run against glob
run: npm run run:glob
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ Explore more <a href="https://www.ctrf.io/integrations">integrations</a>
npx junit-to-ctrf path/to/junit.xml
```

or glob pattern:

```sh
npx junit-to-ctrf "test-results/**/*.xml"
```

## Options

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

```sh
npx junit-to-ctrf path/to/junit.xml
npx junit-to-ctrf "test-results/**/*.xml"
```

### Specify Output File

Convert a JUnit XML report to a specified output file:

```sh
npx junit-to-ctrf path/to/junit.xml -o path/to/output/ctrf-report.json
npx junit-to-ctrf "test-results/**/*.xml" -o ctrf/combined-report.json
```

### Include Tool Name
Expand Down
Loading