@kinora/reporter 0.0.4 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -31,13 +31,13 @@ The token comes from the environment (keep it out of the config file). The serve
|
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
33
|
# hosted cloud
|
|
34
|
-
KINORA_TOKEN=<
|
|
34
|
+
KINORA_TOKEN=<token> npx playwright test
|
|
35
35
|
|
|
36
36
|
# self-host
|
|
37
|
-
KINORA_URL=https://kinora.example.com KINORA_TOKEN=<
|
|
37
|
+
KINORA_URL=https://kinora.example.com KINORA_TOKEN=<token> npx playwright test
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
Create a
|
|
40
|
+
Create a API token in the kinora dashboard (Settings → API tokens).
|
|
41
41
|
|
|
42
42
|
## Options
|
|
43
43
|
|
|
@@ -50,13 +50,13 @@ Create a project API token in the kinora dashboard (Settings → API tokens).
|
|
|
50
50
|
]
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
| Option | Type | Default
|
|
54
|
-
| --------- | ------------------------------------ |
|
|
55
|
-
| `project` | `{ slug: string, name?: string }` | required
|
|
53
|
+
| Option | Type | Default | Description |
|
|
54
|
+
| --------- | ------------------------------------ | ---------------------------- | ------------------------------------------ |
|
|
55
|
+
| `project` | `{ slug: string, name?: string }` | required | Target project. `name` defaults to `slug`. |
|
|
56
56
|
| `url` | `string` | env `KINORA_URL`, then cloud | kinora server base URL. Set for self-host. |
|
|
57
|
-
| `token` | `string` | env `KINORA_TOKEN`
|
|
58
|
-
| `git` | `{ sha?, branch? }` | auto on GitHub Actions
|
|
59
|
-
| `ci` | `{ provider?, runUrl?, runNumber? }` | auto on GitHub Actions
|
|
57
|
+
| `token` | `string` | env `KINORA_TOKEN` | Project API token. Prefer the env var. |
|
|
58
|
+
| `git` | `{ sha?, branch? }` | auto on GitHub Actions | Git metadata for the run. |
|
|
59
|
+
| `ci` | `{ provider?, runUrl?, runNumber? }` | auto on GitHub Actions | CI metadata for the run. |
|
|
60
60
|
|
|
61
61
|
On GitHub Actions, `git` and `ci` are filled from the standard `GITHUB_*` env vars. Pass them explicitly on other CI providers.
|
|
62
62
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kinora/reporter",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.1.0",
|
|
5
5
|
"description": "Playwright reporter that uploads test results to a kinora server",
|
|
6
6
|
"author": "Joris Gallot",
|
|
7
7
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@playwright/test": ">=1.40.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@kinora/core": "0.0
|
|
39
|
+
"@kinora/core": "0.1.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@playwright/test": "^1.60.0",
|