supercov 4.20.0 → 4.20.1
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/cli.md +1 -0
- package/docs/supported-suites.md +32 -3
- package/package.json +11 -10
package/docs/cli.md
CHANGED
|
@@ -923,6 +923,7 @@ terminal or offline environment after the package has been downloaded.
|
|
|
923
923
|
| `SUPERCOV_SOURCE_ROOTS` | Comma-separated directories or files that hold your own code, in any language; everything else is left out |
|
|
924
924
|
| `SUPERCOV_TEST_KIND` | Label the wrapped command as a test level such as `unit` or `e2e` |
|
|
925
925
|
| `SUPERCOV_SOURCE_TOOLS` | Comma-separated names of tools the test command runs that read source as text, such as a linter or a spell checker, besides Biome, oxlint, dprint, cspell and knip. Each is run on your source as you wrote it instead of on the instrumented copy |
|
|
926
|
+
| `SUPERCOV_RUN_ID` | Set by Supercov, not by you: in every process a measured command starts, the run's id, so a test or harness can tell it is measured |
|
|
926
927
|
| `SUPERCOV_RUN_ID_FILE` | A file to write the recorded run's id to, for a script to query that run rather than `latest` |
|
|
927
928
|
| `SUPERCOV_KEEP_WORKSPACE` | Set to `1` to leave the instrumented copy of the project in `.supercov/workspaces/` after the run, to inspect what the command ran |
|
|
928
929
|
|
package/docs/supported-suites.md
CHANGED
|
@@ -308,10 +308,39 @@ What a project needs:
|
|
|
308
308
|
|
|
309
309
|
The project needs no `cfg` flag or build step of its own for Supercov.
|
|
310
310
|
|
|
311
|
+
#### What a test harness can rely on
|
|
312
|
+
|
|
313
|
+
- **Any configuration, anywhere.** A test may write its own wrangler
|
|
314
|
+
configuration, per test, outside the crate, with a `main` of its own: a
|
|
315
|
+
module that loads the built Worker and adds stand-ins or test controls.
|
|
316
|
+
Supercov leaves every configuration as it was written. When a test runs
|
|
317
|
+
`wrangler dev`, Supercov's `wrangler` hands it a copy of the configuration
|
|
318
|
+
it was given (`-c`, or the one wrangler finds from its directory), beside
|
|
319
|
+
the original as `.supercov-wrangler-<pid>-<n>.toml` (or `.json`), whose
|
|
320
|
+
`main` is a small entry that remembers the Worker's wasm instances and then
|
|
321
|
+
loads your `main`. The copy is removed once that `wrangler` exits. A Worker
|
|
322
|
+
is read when wasm built from the crate's measured source runs in it,
|
|
323
|
+
whatever the configuration's `main` imports.
|
|
324
|
+
- **The measured build.** The configuration's `[build]` builds the crate
|
|
325
|
+
with worker-build (any `cwd`), or its `main` imports a build made in the
|
|
326
|
+
run's copy. A `build/` made before the run, without probes, has nothing to
|
|
327
|
+
read.
|
|
328
|
+
- **Why a Worker was not measured.** Where tests started `wrangler dev` and
|
|
329
|
+
no measured build ran in it, the Worker's files name each `wrangler dev -c
|
|
330
|
+
<path>` the tests started, and why a configuration was left as it was (no
|
|
331
|
+
`main`, say), in `gaps` and the file view.
|
|
332
|
+
- **`--inspector-port`.** A test may pass its own: Supercov reads the Worker
|
|
333
|
+
through that port.
|
|
334
|
+
- **Knowing the run is measured.** `SUPERCOV_RUN_ID` is set in every process
|
|
335
|
+
a measured command starts, holding the run's id. The other `SUPERCOV_`
|
|
336
|
+
variables a test may see are Supercov's own wiring and change without
|
|
337
|
+
notice.
|
|
338
|
+
- **Output.** `cargo test -- --nocapture` shows each test's output as it is
|
|
339
|
+
written, as plain `cargo test` does.
|
|
340
|
+
|
|
311
341
|
The Worker built with probes stays in the copy: its `build/` output is never
|
|
312
|
-
returned to the project,
|
|
313
|
-
|
|
314
|
-
build input, so writing it does not make the run stale.
|
|
342
|
+
returned to the project, nor are wrangler's `.wrangler/` state and the
|
|
343
|
+
configuration copies above. Writing them does not make the run stale.
|
|
315
344
|
|
|
316
345
|
### Rust tests compiled to wasm
|
|
317
346
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supercov",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.1",
|
|
4
4
|
"description": "Coverage, security and code quality for coding agents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"coverage",
|
|
@@ -97,7 +97,8 @@
|
|
|
97
97
|
"benchmark:python": "cargo build -p supercov && node scripts/python-benchmark.mjs",
|
|
98
98
|
"check": "npm run check:lint && npm run check:tests",
|
|
99
99
|
"check:lint": "cargo fmt --all -- --check && cargo clippy --workspace --all-targets -- -D warnings",
|
|
100
|
-
"check:tests": "npm run test && npm run
|
|
100
|
+
"check:tests": "npm run test && npm run check:tooling",
|
|
101
|
+
"check:tooling": "npm run test:release-tooling && npm run test:runtime && npm run test:action && npm run test:rust-assets && npm run test:agent-commands && npm run test:assertions && npm run test:sweep-target && npm run test:skip-guard && npm run test:windows-tls && node scripts/package-preflight.mjs && node scripts/verify-binstall-metadata.mjs --offline",
|
|
101
102
|
"release:check": "cargo clean && node scripts/sweep-target.mjs && npm run check && npm run test:engine && npm run test:go && npm run test:jvm && npm run test:launcher && npm run test:fixture && npm run test:watchdog && npm run test:engine-contract && npm run test:agent && npm run test:child-attribution && npm run test:host-loader && npm run test:python && npm run test:ruby-coverage && npm run test:rust-public-cargo && npm run test:packed-npx && npm run test:clang-mcdc && npm run benchmark:check",
|
|
102
103
|
"release:bump": "node scripts/bump-version.mjs",
|
|
103
104
|
"sweep": "node scripts/sweep-target.mjs",
|
|
@@ -121,14 +122,14 @@
|
|
|
121
122
|
"test:windows-tls": "node scripts/windows-tls-test.mjs"
|
|
122
123
|
},
|
|
123
124
|
"optionalDependencies": {
|
|
124
|
-
"@supercov/cli-darwin-arm64": "4.20.
|
|
125
|
-
"@supercov/cli-darwin-x64": "4.20.
|
|
126
|
-
"@supercov/cli-linux-arm64-gnu": "4.20.
|
|
127
|
-
"@supercov/cli-linux-arm64-musl": "4.20.
|
|
128
|
-
"@supercov/cli-linux-x64-gnu": "4.20.
|
|
129
|
-
"@supercov/cli-linux-x64-musl": "4.20.
|
|
130
|
-
"@supercov/cli-win32-arm64": "4.20.
|
|
131
|
-
"@supercov/cli-win32-x64": "4.20.
|
|
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"
|
|
132
133
|
},
|
|
133
134
|
"peerDependencies": {
|
|
134
135
|
"@playwright/test": ">=1.55.0",
|