supercov 4.20.1 → 4.20.3

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.
@@ -274,8 +274,12 @@ 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 say so, in
278
- `gaps` and the file view, rather than reading as code the tests missed.
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, `files` and `gaps` say why, `scope` lists them as left
280
+ out, the run's measurement reads incomplete, the run names them after the
281
+ tests' output, and `runs check` refuses to judge a floor over a run that left
282
+ them unmeasured.
279
283
 
280
284
  `wrangler dev --remote` runs the Worker on Cloudflare's edge, and wrangler
281
285
  opens no inspector into it there, so nothing can read what it ran. A test
@@ -292,7 +296,11 @@ Worker of a session, and Supercov reads each through workerd's own, whose
292
296
  address a small preload in wrangler's Node process reports. A test that
293
297
  sets its own `NODE_OPTIONS` keeps them; the preload is added after. A workspace with several Worker crates counts each crate
294
298
  once, and runs of different tests -- each starting different Workers, or
295
- none -- merge with `supercov merge`. Tests that run a Worker only when its `build/` exists, as a test
299
+ none -- merge with `supercov merge`. A crate the Worker is built with, such
300
+ as a core library the native tests call too, is measured inside the Worker:
301
+ its probes run in the Worker's wasm and are read with the Worker's, into the
302
+ same file as its native tests, each test credited what it reached either
303
+ way. Tests that run a Worker only when its `build/` exists, as a test
296
304
  kit that will not start an unbuilt Worker does, run it: a `build/` you made
297
305
  beforehand and keep out of git is in the copy, and `wrangler dev` builds the
298
306
  crate with probes over it there.
@@ -324,11 +332,12 @@ The project needs no `cfg` flag or build step of its own for Supercov.
324
332
  - **The measured build.** The configuration's `[build]` builds the crate
325
333
  with worker-build (any `cwd`), or its `main` imports a build made in the
326
334
  run's copy. A `build/` made before the run, without probes, has nothing to
327
- read.
335
+ read. Supercov builds nothing itself: as a JavaScript suite builds the wasm
336
+ it loads, build the Worker in the measured command or in the tests.
328
337
  - **Why a Worker was not measured.** Where tests started `wrangler dev` and
329
338
  no measured build ran in it, the Worker's files name each `wrangler dev -c
330
339
  <path>` the tests started, and why a configuration was left as it was (no
331
- `main`, say), in `gaps` and the file view.
340
+ `main`, say), in the file view, `scope` and the run's output.
332
341
  - **`--inspector-port`.** A test may pass its own: Supercov reads the Worker
333
342
  through that port.
334
343
  - **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.1",
3
+ "version": "4.20.3",
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.1",
126
- "@supercov/cli-darwin-x64": "4.20.1",
127
- "@supercov/cli-linux-arm64-gnu": "4.20.1",
128
- "@supercov/cli-linux-arm64-musl": "4.20.1",
129
- "@supercov/cli-linux-x64-gnu": "4.20.1",
130
- "@supercov/cli-linux-x64-musl": "4.20.1",
131
- "@supercov/cli-win32-arm64": "4.20.1",
132
- "@supercov/cli-win32-x64": "4.20.1"
125
+ "@supercov/cli-darwin-arm64": "4.20.3",
126
+ "@supercov/cli-darwin-x64": "4.20.3",
127
+ "@supercov/cli-linux-arm64-gnu": "4.20.3",
128
+ "@supercov/cli-linux-arm64-musl": "4.20.3",
129
+ "@supercov/cli-linux-x64-gnu": "4.20.3",
130
+ "@supercov/cli-linux-x64-musl": "4.20.3",
131
+ "@supercov/cli-win32-arm64": "4.20.3",
132
+ "@supercov/cli-win32-x64": "4.20.3"
133
133
  },
134
134
  "peerDependencies": {
135
135
  "@playwright/test": ">=1.55.0",