supercov 3.0.2 → 3.0.4
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/docs/assertions.md +6 -2
- package/docs/cli.md +3 -2
- package/docs/quality.md +6 -3
- package/package.json +9 -9
package/docs/assertions.md
CHANGED
|
@@ -101,7 +101,7 @@ npx supercov runs latest assertions --test "closes the stream" # what one test
|
|
|
101
101
|
```text
|
|
102
102
|
Run run_4f2a: 93.8% asserted (2731 of 2913 executed statements)
|
|
103
103
|
|
|
104
|
-
Files, most statements not asserted first: a statement is not asserted when none of the tests asked about it was judged to fail if it changed. Up to
|
|
104
|
+
Files, most statements not asserted first: a statement is not asserted when none of the tests asked about it was judged to fail if it changed. Up to 18 of the tests that run a statement are asked, so a test never asked can still catch it.
|
|
105
105
|
NOT ASSERTED ASSERTED FILE
|
|
106
106
|
41 388/429 src/adapters.ts
|
|
107
107
|
...
|
|
@@ -120,7 +120,11 @@ nothing the asked tests assert depends on what the statement does. Five of the
|
|
|
120
120
|
tests that run a statement are asked first, and up to 15 when none of those
|
|
121
121
|
catches it: tests whose file quotes text the statement writes (a log line, a
|
|
122
122
|
message), then tests named like the source file, then one per test file and
|
|
123
|
-
describe block.
|
|
123
|
+
describe block. When none of the 15 catches it, up to three more are asked, the
|
|
124
|
+
ones most likely written for the statement: tests whose name shares words with
|
|
125
|
+
the statement's line (`corsOrigin: a false value` for
|
|
126
|
+
`return corsOrigin(origin)`), and among those the tests that ran the least
|
|
127
|
+
other code. A statement many tests run can still be caught by one that was
|
|
124
128
|
never asked; the statement view (`assertions <file>:<line>`) says how many were.
|
|
125
129
|
|
|
126
130
|
## Which tests check a change
|
package/docs/cli.md
CHANGED
|
@@ -63,8 +63,9 @@ is known about it. `--all` includes test files, generated output and anything
|
|
|
63
63
|
outside a source root, all of which are left out by default. `--dry-run` prints
|
|
64
64
|
the exact requests and contacts nothing.
|
|
65
65
|
|
|
66
|
-
`quality diff` reports what
|
|
67
|
-
health,
|
|
66
|
+
`quality diff` reports what changed between two assessments: which files lost
|
|
67
|
+
or gained health, each check that moved in them with its value before and after,
|
|
68
|
+
and which files entered or left the scope.
|
|
68
69
|
|
|
69
70
|
Assessing needs a TypeSafe AI API key in `TYPESAFE_API_KEY`; reading a saved
|
|
70
71
|
assessment does not. `TYPESAFE_BASE_URL` and `TYPESAFE_DEFAULT_MODEL` use Jev
|
package/docs/quality.md
CHANGED
|
@@ -170,8 +170,11 @@ npx supercov quality snapshots
|
|
|
170
170
|
npx supercov quality diff <older> <newer>
|
|
171
171
|
```
|
|
172
172
|
|
|
173
|
-
Which files lost health
|
|
174
|
-
|
|
173
|
+
Which files lost health and which gained, each check that fired in either
|
|
174
|
+
snapshot with its value before and after (`long_method 0.93 → 0.41, no longer
|
|
175
|
+
present`), and which files entered or left the scope, with what fired on the new
|
|
176
|
+
ones. A refactor that extracts code shows up as an added file, and a check still
|
|
177
|
+
present at a lower value shows that the change moved it. A file whose contents did not change is marked,
|
|
175
178
|
so a small movement does not send you looking for an edit that was never made.
|
|
176
179
|
|
|
177
180
|
## What it costs
|
|
@@ -223,7 +226,7 @@ npx supercov quality gaps # only files something fired on
|
|
|
223
226
|
npx supercov quality file src/server.ts # one file, every check
|
|
224
227
|
npx supercov quality scope # which files, and why
|
|
225
228
|
npx supercov quality snapshots # saved assessments
|
|
226
|
-
npx supercov quality diff <older> <newer> # what
|
|
229
|
+
npx supercov quality diff <older> <newer> # what changed
|
|
227
230
|
npx supercov quality patch # what a change introduced
|
|
228
231
|
```
|
|
229
232
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supercov",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "Coverage, security and code quality for coding agents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"coverage",
|
|
@@ -118,14 +118,14 @@
|
|
|
118
118
|
"test:windows-tls": "node scripts/windows-tls-test.mjs"
|
|
119
119
|
},
|
|
120
120
|
"optionalDependencies": {
|
|
121
|
-
"@supercov/cli-darwin-arm64": "3.0.
|
|
122
|
-
"@supercov/cli-darwin-x64": "3.0.
|
|
123
|
-
"@supercov/cli-linux-arm64-gnu": "3.0.
|
|
124
|
-
"@supercov/cli-linux-arm64-musl": "3.0.
|
|
125
|
-
"@supercov/cli-linux-x64-gnu": "3.0.
|
|
126
|
-
"@supercov/cli-linux-x64-musl": "3.0.
|
|
127
|
-
"@supercov/cli-win32-arm64": "3.0.
|
|
128
|
-
"@supercov/cli-win32-x64": "3.0.
|
|
121
|
+
"@supercov/cli-darwin-arm64": "3.0.4",
|
|
122
|
+
"@supercov/cli-darwin-x64": "3.0.4",
|
|
123
|
+
"@supercov/cli-linux-arm64-gnu": "3.0.4",
|
|
124
|
+
"@supercov/cli-linux-arm64-musl": "3.0.4",
|
|
125
|
+
"@supercov/cli-linux-x64-gnu": "3.0.4",
|
|
126
|
+
"@supercov/cli-linux-x64-musl": "3.0.4",
|
|
127
|
+
"@supercov/cli-win32-arm64": "3.0.4",
|
|
128
|
+
"@supercov/cli-win32-x64": "3.0.4"
|
|
129
129
|
},
|
|
130
130
|
"peerDependencies": {
|
|
131
131
|
"@playwright/test": ">=1.55.0",
|