supercov 4.20.1 → 4.20.2
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/supported-suites.md +13 -5
- package/package.json +9 -9
package/docs/supported-suites.md
CHANGED
|
@@ -274,8 +274,11 @@ of that build is not counted, and wasm-only code is, whatever target
|
|
|
274
274
|
`cargo test` builds the rest for. The crate counts whether or not
|
|
275
275
|
`cargo test` compiles it (`cargo test -p host` does not) and whether or not
|
|
276
276
|
a test started its Worker, so every run of the workspace has one
|
|
277
|
-
denominator. Where no test of a run started a Worker, its files
|
|
278
|
-
|
|
277
|
+
denominator. Where no test of a run started a Worker, its files are not
|
|
278
|
+
measured, rather than read as code the tests missed: they leave the run's
|
|
279
|
+
totals, the file view says why at the top, `scope` lists them as left out,
|
|
280
|
+
the run names them after the tests' output, and `runs check` refuses to judge
|
|
281
|
+
a floor over a run that left them unmeasured.
|
|
279
282
|
|
|
280
283
|
`wrangler dev --remote` runs the Worker on Cloudflare's edge, and wrangler
|
|
281
284
|
opens no inspector into it there, so nothing can read what it ran. A test
|
|
@@ -292,7 +295,11 @@ Worker of a session, and Supercov reads each through workerd's own, whose
|
|
|
292
295
|
address a small preload in wrangler's Node process reports. A test that
|
|
293
296
|
sets its own `NODE_OPTIONS` keeps them; the preload is added after. A workspace with several Worker crates counts each crate
|
|
294
297
|
once, and runs of different tests -- each starting different Workers, or
|
|
295
|
-
none -- merge with `supercov merge`.
|
|
298
|
+
none -- merge with `supercov merge`. A crate the Worker is built with, such
|
|
299
|
+
as a core library the native tests call too, is measured inside the Worker:
|
|
300
|
+
its probes run in the Worker's wasm and are read with the Worker's, into the
|
|
301
|
+
same file as its native tests, each test credited what it reached either
|
|
302
|
+
way. Tests that run a Worker only when its `build/` exists, as a test
|
|
296
303
|
kit that will not start an unbuilt Worker does, run it: a `build/` you made
|
|
297
304
|
beforehand and keep out of git is in the copy, and `wrangler dev` builds the
|
|
298
305
|
crate with probes over it there.
|
|
@@ -324,11 +331,12 @@ The project needs no `cfg` flag or build step of its own for Supercov.
|
|
|
324
331
|
- **The measured build.** The configuration's `[build]` builds the crate
|
|
325
332
|
with worker-build (any `cwd`), or its `main` imports a build made in the
|
|
326
333
|
run's copy. A `build/` made before the run, without probes, has nothing to
|
|
327
|
-
read.
|
|
334
|
+
read. Supercov builds nothing itself: as a JavaScript suite builds the wasm
|
|
335
|
+
it loads, build the Worker in the measured command or in the tests.
|
|
328
336
|
- **Why a Worker was not measured.** Where tests started `wrangler dev` and
|
|
329
337
|
no measured build ran in it, the Worker's files name each `wrangler dev -c
|
|
330
338
|
<path>` the tests started, and why a configuration was left as it was (no
|
|
331
|
-
`main`, say), in `
|
|
339
|
+
`main`, say), in the file view, `scope` and the run's output.
|
|
332
340
|
- **`--inspector-port`.** A test may pass its own: Supercov reads the Worker
|
|
333
341
|
through that port.
|
|
334
342
|
- **Knowing the run is measured.** `SUPERCOV_RUN_ID` is set in every process
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supercov",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.2",
|
|
4
4
|
"description": "Coverage, security and code quality for coding agents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"coverage",
|
|
@@ -122,14 +122,14 @@
|
|
|
122
122
|
"test:windows-tls": "node scripts/windows-tls-test.mjs"
|
|
123
123
|
},
|
|
124
124
|
"optionalDependencies": {
|
|
125
|
-
"@supercov/cli-darwin-arm64": "4.20.
|
|
126
|
-
"@supercov/cli-darwin-x64": "4.20.
|
|
127
|
-
"@supercov/cli-linux-arm64-gnu": "4.20.
|
|
128
|
-
"@supercov/cli-linux-arm64-musl": "4.20.
|
|
129
|
-
"@supercov/cli-linux-x64-gnu": "4.20.
|
|
130
|
-
"@supercov/cli-linux-x64-musl": "4.20.
|
|
131
|
-
"@supercov/cli-win32-arm64": "4.20.
|
|
132
|
-
"@supercov/cli-win32-x64": "4.20.
|
|
125
|
+
"@supercov/cli-darwin-arm64": "4.20.2",
|
|
126
|
+
"@supercov/cli-darwin-x64": "4.20.2",
|
|
127
|
+
"@supercov/cli-linux-arm64-gnu": "4.20.2",
|
|
128
|
+
"@supercov/cli-linux-arm64-musl": "4.20.2",
|
|
129
|
+
"@supercov/cli-linux-x64-gnu": "4.20.2",
|
|
130
|
+
"@supercov/cli-linux-x64-musl": "4.20.2",
|
|
131
|
+
"@supercov/cli-win32-arm64": "4.20.2",
|
|
132
|
+
"@supercov/cli-win32-x64": "4.20.2"
|
|
133
133
|
},
|
|
134
134
|
"peerDependencies": {
|
|
135
135
|
"@playwright/test": ">=1.55.0",
|