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.
@@ -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 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 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`. Tests that run a Worker only when its `build/` exists, as a test
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 `gaps` and the file view.
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.1",
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.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.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",