@tested/cli 0.1.5 → 0.1.7

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 CHANGED
@@ -25,7 +25,7 @@ CI uses the composite Action (`tested-hq/cli/action@main`). It installs `@tested
25
25
  ```yaml
26
26
  - uses: tested-hq/cli/action@main
27
27
  with:
28
- version: 0.1.5
28
+ version: 0.1.7
29
29
  token: ${{ secrets.TESTED_TOKEN }}
30
30
  ```
31
31
 
@@ -38,6 +38,8 @@ tested run # writes coverage even if tests fail
38
38
  tested diff # report (exit 0)
39
39
  tested check # gate (exit 1 if under threshold)
40
40
  tested push --pr <n> # needs TESTED_TOKEN
41
+ tested token # mint URL from git remote + env names
42
+ tested whoami # whether a token is set (never prints it)
41
43
  ```
42
44
 
43
45
  ## Security
@@ -68,7 +70,7 @@ tested push --pr <n> # share URL on app.tested.dev (needs token)
68
70
 
69
71
  Human output is monochrome editorial craft: restrained color via picocolors (green / yellow / red for status only). ASCII badges (`[PASS]` / `[FAIL]`) and metric bars. Honors `NO_COLOR` and non-TTY (no ornaments when color is unsupported).
70
72
 
71
- `--json` on every command keeps agent schemas stable.
73
+ `--json` is available on setup, doctor, init, run, diff, check, push, token, whoami, explain, and ignores. `tested run --json` is tested's own summary (command, exit, coverage path). It is not forwarded to the test runner.
72
74
 
73
75
  ## Dogfood
74
76
 
@@ -133,7 +135,7 @@ If `thresholds` is missing from `.tested.yaml`, `tested check` prints a notice o
133
135
  ```yaml
134
136
  - uses: tested-hq/cli/action@main
135
137
  with:
136
- version: 0.1.5
138
+ version: 0.1.7
137
139
  push: true
138
140
  pr-number: ${{ github.event.pull_request.number }}
139
141
  token: ${{ secrets.TESTED_TOKEN }}
@@ -176,8 +178,9 @@ $ tested push
176
178
 
177
179
  ### `tested run` extra args
178
180
 
179
- Extra args are forwarded to the runner via argv (no shell). In CI /
180
- non-interactive mode / when `TESTED_SAFE_RUN=1`:
181
+ `tested run` writes `coverage/coverage-final.json` even when the suite fails (Vitest `--coverage.reportOnFailure`). Extra args are forwarded to the runner via argv (no shell). `--json` is consumed by tested and is not forwarded.
182
+
183
+ In CI / non-interactive mode / when `TESTED_SAFE_RUN=1`:
181
184
 
182
185
  - `--watch`, `--watchAll`, `-w` are **rejected** (hang risk)
183
186
  - `--config` / `-c` paths that resolve **outside the repo root** are **rejected**