Skip to content

Commit 08dcc45

Browse files
committed
refactor: Remove project key references from documentation and update test tool descriptions for clarity
1 parent ba721b1 commit 08dcc45

9 files changed

Lines changed: 30 additions & 130 deletions

File tree

docs/ci-integrations/setup.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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)
@@ -39,7 +38,6 @@ jobs:
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
@@ -48,8 +46,8 @@ jobs:
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 |
@@ -60,7 +58,6 @@ jobs:
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
7269
npx @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 \

docs/getting-started/installation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Choose the reporter that matches your testing framework and follow the installat
88

99
## Playwright Reporter
1010

11-
Install the Playwright reporter for automatic CTRF report generation and upload.
11+
Install the Playwright reporter for automatically uploading your Playwright test results.
1212

1313
```bash
1414
npm install --save-dev @testream/playwright-reporter
@@ -30,7 +30,7 @@ pnpm add --save-dev @testream/playwright-reporter
3030

3131
## Cypress Reporter
3232

33-
Install the Cypress reporter for automatic CTRF report generation and upload.
33+
Install the Cypress reporter for automatically uploading your Cypress test results.
3434

3535
```bash
3636
npm install --save-dev @testream/cypress-reporter cypress-ctrf-json-reporter
@@ -52,7 +52,7 @@ pnpm add --save-dev @testream/cypress-reporter cypress-ctrf-json-reporter
5252

5353
## Jest Reporter
5454

55-
Install the Jest reporter for automatic CTRF report generation and upload.
55+
Install the Jest reporter for automatically uploading your Jest test results.
5656

5757
```bash
5858
npm install --save-dev @testream/jest-reporter
@@ -74,7 +74,7 @@ pnpm add --save-dev @testream/jest-reporter
7474

7575
## .NET Reporter
7676

77-
Install the .NET reporter CLI globally for converting .NET test results to CTRF format.
77+
Install the .NET reporter CLI globally for seamlessly uploading your .NET test results.
7878

7979
```bash
8080
npm install -g @testream/dotnet-reporter
@@ -118,9 +118,9 @@ You'll need a Testream API key to upload test results.
118118

119119
1. Visit [testream.app](https://testream.app)
120120
2. Sign up or log in to your account
121-
3. Navigate to SettingsAPI Keys
121+
3. Navigate to DashboardProjects
122122
4. Create a new API key
123-
5. Copy and store it securely (e.g., GitHub Secrets, environment variables)
123+
5. Copy and store it securely (e.g., GitHub Secrets, Key Vaults,environment variables)
124124

125125
---
126126

docs/getting-started/quick-start.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export default defineConfig({
3636
reporter: [
3737
['@testream/playwright-reporter', {
3838
apiKey: process.env.TESTREAM_API_KEY,
39-
projectKey: 'PROJ',
4039
uploadEnabled: true,
4140
}],
4241

@@ -142,7 +141,7 @@ You can also run tests first and upload results separately using the GitHub Acti
142141
run: |
143142
npx @testream/upload-action \
144143
--report-path ctrf/ctrf-report.json \
145-
--project-key PROJ \
144+
--test-tool playwright \
146145
--api-key ${{ secrets.TESTREAM_API_KEY }}
147146
```
148147

docs/intro.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ Upload test results and artifacts with minimal configuration:
3939
- uses: testream/upload-action@v0.4.1
4040
with:
4141
report-path: ctrf/ctrf-report.json
42-
project-key: ${{ secrets.TESTREAM_PROJECT_KEY }}
42+
test-tool: playwright
4343
api-key: ${{ secrets.TESTREAM_API_KEY }}
4444
```
4545
4646
Or use the CLI directly:
4747
4848
```bash
49-
npx @testream/upload-action \\
50-
--report-path ctrf/ctrf-report.json \\
51-
--project-key PROJ \\
49+
npx @testream/upload-action \
50+
--report-path ctrf/ctrf-report.json \
51+
--test-tool playwright \
5252
--api-key $TESTREAM_API_KEY
5353
```
5454

docs/jira-integration/usage.md

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -167,25 +167,6 @@ Monitor key metrics:
167167
- **Failure Trends** - Number of failing tests over time
168168
- **New Failures** - Recently broken tests
169169

170-
## Notifications
171-
172-
Stay informed about test results:
173-
174-
### Jira Notifications
175-
176-
- Test failures on linked issues
177-
- New test runs completed
178-
- Flaky test alerts
179-
180-
### Email Notifications
181-
182-
Configure in Testream dashboard:
183-
1. Go to Settings → Notifications
184-
2. Enable email alerts for:
185-
- Test failures
186-
- Flaky tests detected
187-
- Daily/weekly summaries
188-
189170
## Best Practices
190171

191172
### Issue Linking
@@ -230,58 +211,6 @@ Configure in Testream dashboard:
230211

231212
By default, anyone with access to the Jira issue can view test results.
232213

233-
### Who Can Link Tests?
234-
235-
- Project administrators
236-
- Users with "Edit Issues" permission
237-
- Testream account owners
238-
239-
### Configuring Permissions
240-
241-
1. Go to Jira **Settings****Apps****Testream**
242-
2. Click **"Permissions"**
243-
3. Configure:
244-
- Who can view test results
245-
- Who can link/unlink tests
246-
- Who can configure settings
247-
248-
## Troubleshooting
249-
250-
### No test results appearing
251-
252-
**Check:**
253-
- Tests are actually being uploaded to Testream
254-
- Issue key is correctly referenced in commits/branches
255-
- Testream app is connected to your account
256-
- Jira issue is in the correct project
257-
258-
### Artifacts not loading
259-
260-
**Possible causes:**
261-
- Artifacts not uploaded with test results
262-
- Network issues
263-
- Artifacts expired (check retention policy)
264-
265-
**Solution:**
266-
- Verify `uploadArtifacts: true` in reporter config
267-
- Check artifact file sizes (large files may take time)
268-
- Contact support if artifacts are missing
269-
270-
### Test runs not updating
271-
272-
**Try:**
273-
- Refresh the page
274-
- Check if test runs are completing in Testream dashboard
275-
- Verify webhook connections in settings
276-
277-
### Slow performance
278-
279-
**Solutions:**
280-
- Reduce date range in filters
281-
- Limit number of displayed test runs
282-
- Clear browser cache
283-
- Check Jira instance performance
284-
285214
## Getting Help
286215

287216
If you encounter issues:

docs/reporters/cypress.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ npm install --save-dev @testream/cypress-reporter cypress-ctrf-json-reporter
1919
The easiest way to get started is using the CLI:
2020

2121
```bash
22-
npx @testream/cypress-reporter -p PROJ -k $TESTREAM_API_KEY
22+
npx @testream/cypress-reporter -k $TESTREAM_API_KEY
2323
```
2424

2525
This single command will:
2626
1. Run your Cypress tests
2727
2. Generate a CTRF report automatically
28-
3. Upload results to Testream
28+
3. Upload results to Testream (project key inferred from API key)
2929

3030
### Option 2: Programmatic Configuration
3131

@@ -41,7 +41,6 @@ export default defineConfig({
4141
new TestreamReporter({
4242
on,
4343
apiKey: process.env.TESTREAM_API_KEY,
44-
projectKey: 'PROJ',
4544
uploadEnabled: true,
4645
});
4746
},
@@ -59,7 +58,6 @@ cypress run
5958

6059
| Option | Description |
6160
| --- | --- |
62-
| `-p, --project-key` | **Required** Jira project key |
6361
| `-k, --api-key` | **Required** API key (unless `--no-upload` is used) |
6462
| `--project <path>` | Path to Cypress project (defaults to current directory) |
6563
| `--results-path <path>` | Use existing CTRF file(s) instead of running tests |
@@ -85,7 +83,6 @@ When using programmatic configuration, these options are available:
8583
| --- | --- | --- | --- |
8684
| `on` | `PluginEvents` | - | **Required** Cypress plugin events object |
8785
| `apiKey` | `string` | - | **Required** Testream API key |
88-
| `projectKey` | `string` | - | **Required** Jira project key |
8986
| `uploadEnabled` | `boolean` | `true` | Enable/disable automatic upload |
9087
| `failOnUploadError` | `boolean` | `false` | Fail test run if upload fails |
9188
| `outputDir` | `string` | `ctrf` | CTRF output directory |
@@ -110,34 +107,33 @@ When using programmatic configuration, these options are available:
110107
### Run tests and upload
111108

112109
```bash
113-
npx @testream/cypress-reporter -p PROJ -k $TESTREAM_API_KEY
110+
npx @testream/cypress-reporter -k $TESTREAM_API_KEY
114111
```
115112

116113
### Run tests from a specific project directory
117114

118115
```bash
119-
npx @testream/cypress-reporter -p PROJ -k $TESTREAM_API_KEY --project ./e2e
116+
npx @testream/cypress-reporter -k $TESTREAM_API_KEY --project ./e2e
120117
```
121118

122119
### Pass additional arguments to Cypress
123120

124121
```bash
125-
npx @testream/cypress-reporter -p PROJ -k $TESTREAM_API_KEY -- --spec "cypress/e2e/**/*.cy.js"
122+
npx @testream/cypress-reporter -k $TESTREAM_API_KEY -- --spec "cypress/e2e/**/*.cy.js"
126123
```
127124

128125
### Use existing CTRF results
129126

130127
If you've already run your tests and have CTRF reports:
131128

132129
```bash
133-
npx @testream/cypress-reporter -p PROJ -k $TESTREAM_API_KEY --results-path ctrf/ctrf-report.json
130+
npx @testream/cypress-reporter -k $TESTREAM_API_KEY --results-path ctrf/ctrf-report.json
134131
```
135132

136133
### Add full metadata
137134

138135
```bash
139136
npx @testream/cypress-reporter \
140-
-p PROJ \
141137
-k $TESTREAM_API_KEY \
142138
--branch $GITHUB_REF_NAME \
143139
--commit-sha $GITHUB_SHA \
@@ -167,7 +163,6 @@ export default defineConfig({
167163
on,
168164
// API Configuration
169165
apiKey: process.env.TESTREAM_API_KEY,
170-
projectKey: 'PROJ',
171166

172167
// Upload Configuration
173168
uploadEnabled: true,
@@ -232,10 +227,8 @@ jobs:
232227
- name: Run Cypress tests and upload
233228
env:
234229
TESTREAM_API_KEY: ${{ secrets.TESTREAM_API_KEY }}
235-
TESTREAM_PROJECT_KEY: PROJ
236230
run: |
237231
npx @testream/cypress-reporter \
238-
-p $TESTREAM_PROJECT_KEY \
239232
-k $TESTREAM_API_KEY \
240233
--test-environment ci \
241234
--app-name MyApp \

0 commit comments

Comments
 (0)