@@ -9,7 +9,6 @@ Upload CTRF test reports to Testream from any CI provider. Use the GitHub Action
99## What you need
1010
1111- ** Testream API key** (from testream.app → Settings → API Keys)
12- - ** Jira project key** (e.g., ` PROJ ` )
1312- A ** CTRF report** (generated by the Playwright or .NET reporter)
1413
1514## GitHub Actions (Action)
3938 uses : testream/upload-action@v0.4.1
4039 with :
4140 report-path : ctrf/ctrf-report.json
42- project-key : ${{ secrets.TESTREAM_PROJECT_KEY }}
4341 api-key : ${{ secrets.TESTREAM_API_KEY }}
4442` ` `
4543
4846| Input | Required | Default | Description |
4947| --- | --- | --- | --- |
5048| ` report-path` | Yes | - | Path to CTRF report JSON file |
51- | `project-key` | Yes | - | Jira project key (e.g., `PROJ`) |
5249| `api-key` | Yes* | - | Testream API key (*required unless `no-upload` is true) |
50+ | `test-tool` | Yes | - | Test tool name (e.g., `playwright`, `jest`, `cypress`, `dotnet`) |
5351| `branch` | No | auto | Git branch name |
5452| `commit-sha` | No | auto | Git commit SHA |
5553| `repository-url` | No | auto | Git repository URL |
6058| `app-name` | No | - | Application name |
6159| `app-version` | No | - | Application version |
6260| `test-type` | No | - | Test type (e.g., `unit`, `e2e`) |
63- | `test-tool` | No | - | Override tool name in CTRF report |
6461| `no-upload` | No | `false` | Skip upload (validate + summarize only) |
6562| `fail-on-error` | No | `true` | Fail the action if upload fails |
6663
@@ -71,17 +68,17 @@ Use the CLI in CircleCI, Bitbucket Pipelines, GitLab, Jenkins, Azure Pipelines,
7168` ` ` bash
7269npx @testream/upload-action \
7370 --report-path ctrf/ctrf-report.json \
74- --project-key PROJ \
71+ --test-tool playwright \
7572 --api-key $TESTREAM_API_KEY
7673` ` `
7774
7875# ## CLI options
7976
8077| Option | Description |
8178| --- | --- |
82- | `-r, --report-path <path>` | Path to CTRF report JSON file |
83- | `-p , --project -key <key>` | Jira project key |
84- | `-k, --api-key <key >` | API key for authentication |
79+ | `-r, --report-path <path>` | **Required** Path to CTRF report JSON file |
80+ | `-k , --api -key <key>` | **Required** API key for authentication |
81+ | `--test-tool <name >` | **Required** Test tool name (e.g., `playwright`, `jest`, `cypress`, `dotnet`) |
8582| `-b, --branch <name>` | Git branch name |
8683| `-c, --commit-sha <sha>` | Git commit SHA |
8784| `-u, --repository-url <url>` | Git repository URL |
@@ -92,7 +89,6 @@ npx @testream/upload-action \
9289| `--app-name <name>` | Application name |
9390| `--app-version <ver>` | Application version |
9491| `--test-type <type>` | Test type (e.g., `unit`, `e2e`) |
95- | `--test-tool <name>` | Override tool name in CTRF report |
9692| `--no-upload` | Skip uploading (validate + summarize only) |
9793| `--fail-on-error` | Exit with non-zero code if upload fails |
9894
@@ -114,7 +110,7 @@ jobs:
114110 command: |
115111 npx @testream/upload-action \
116112 --report-path ctrf/ctrf-report.json \
117- --project-key $TESTREAM_PROJECT_KEY \
113+ --test-tool playwright \
118114 --api-key $TESTREAM_API_KEY \
119115 --branch $CIRCLE_BRANCH \
120116 --commit-sha $CIRCLE_SHA1 \
@@ -139,7 +135,7 @@ pipelines:
139135 - |
140136 npx @testream/upload-action \
141137 --report-path ctrf/ctrf-report.json \
142- --project-key $TESTREAM_PROJECT_KEY \
138+ --test-tool playwright \
143139 --api-key $TESTREAM_API_KEY \
144140 --branch $BITBUCKET_BRANCH \
145141 --commit-sha $BITBUCKET_COMMIT \
0 commit comments