supercov 4.18.0 → 4.19.0
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 +30 -3
- package/package.json +9 -9
package/docs/supported-suites.md
CHANGED
|
@@ -249,6 +249,7 @@ Cloudflare's own runtime -- measure the Worker too:
|
|
|
249
249
|
|
|
250
250
|
```sh
|
|
251
251
|
npx supercov -- cargo test
|
|
252
|
+
npx supercov -- cargo nextest run
|
|
252
253
|
```
|
|
253
254
|
|
|
254
255
|
The Worker crate is instrumented with the rest of the workspace, and `wrangler
|
|
@@ -259,7 +260,16 @@ the test's own arguments, process and signals. What the Worker ran is
|
|
|
259
260
|
credited to the test that started it, exactly, as its own coverage. The
|
|
260
261
|
Worker crate counts though `cargo test` never compiles it, once a test has
|
|
261
262
|
run it. This needs a `wrangler` on `PATH` when the run starts; without one,
|
|
262
|
-
nothing is put in front of it.
|
|
263
|
+
nothing is put in front of it. A run whose tests start no Worker still compiles the crate under
|
|
264
|
+
`cargo test --workspace`; its files then say they are a Rust Worker no test
|
|
265
|
+
started, in `gaps` and the file view, rather than reading as code the tests
|
|
266
|
+
missed.
|
|
267
|
+
|
|
268
|
+
`wrangler dev --remote` runs the Worker on Cloudflare's edge, and wrangler
|
|
269
|
+
opens no inspector into it there, so nothing can read what it ran. A test
|
|
270
|
+
that starts it that way runs as usual; the Worker's files then say they ran
|
|
271
|
+
remotely and could not be read. Start the Worker with `wrangler dev` to
|
|
272
|
+
measure it.
|
|
263
273
|
|
|
264
274
|
The Worker built with probes stays in the copy: its `build/` output is never
|
|
265
275
|
returned to the project, and neither is the copy's configuration, which
|
|
@@ -286,8 +296,25 @@ npx supercov -- cargo test --target wasm32-wasip1
|
|
|
286
296
|
file there as it runs.
|
|
287
297
|
|
|
288
298
|
Each test is credited exactly, assertions included, as for a native test.
|
|
289
|
-
|
|
290
|
-
|
|
299
|
+
|
|
300
|
+
`wasm-pack test` works the same way. Supercov runs wasm-pack once to learn
|
|
301
|
+
the `cargo test` it would run (the runner, the browser driver), then runs
|
|
302
|
+
that command test by test:
|
|
303
|
+
|
|
304
|
+
```sh
|
|
305
|
+
npx supercov -- wasm-pack test --node
|
|
306
|
+
npx supercov -- wasm-pack test --headless --chrome
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
- In headless Chrome, Supercov stands between the runner and `chromedriver`,
|
|
310
|
+
and reads what each test's module ran from the page before the runner
|
|
311
|
+
closes it.
|
|
312
|
+
- Tests run in Firefox, Safari or Edge are run and reported, but not
|
|
313
|
+
measured yet; the run says so.
|
|
314
|
+
- `wasm-pack test` is measured on Linux and macOS. On Windows, run the
|
|
315
|
+
`cargo test --target wasm32-unknown-unknown` it runs.
|
|
316
|
+
- Deno is not supported. `wasm-bindgen-test-runner`'s Deno mode
|
|
317
|
+
(`WASM_BINDGEN_USE_DENO=1`) does not run on Deno 2.
|
|
291
318
|
|
|
292
319
|
## Python
|
|
293
320
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supercov",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.19.0",
|
|
4
4
|
"description": "Coverage, security and code quality for coding agents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"coverage",
|
|
@@ -119,14 +119,14 @@
|
|
|
119
119
|
"test:windows-tls": "node scripts/windows-tls-test.mjs"
|
|
120
120
|
},
|
|
121
121
|
"optionalDependencies": {
|
|
122
|
-
"@supercov/cli-darwin-arm64": "4.
|
|
123
|
-
"@supercov/cli-darwin-x64": "4.
|
|
124
|
-
"@supercov/cli-linux-arm64-gnu": "4.
|
|
125
|
-
"@supercov/cli-linux-arm64-musl": "4.
|
|
126
|
-
"@supercov/cli-linux-x64-gnu": "4.
|
|
127
|
-
"@supercov/cli-linux-x64-musl": "4.
|
|
128
|
-
"@supercov/cli-win32-arm64": "4.
|
|
129
|
-
"@supercov/cli-win32-x64": "4.
|
|
122
|
+
"@supercov/cli-darwin-arm64": "4.19.0",
|
|
123
|
+
"@supercov/cli-darwin-x64": "4.19.0",
|
|
124
|
+
"@supercov/cli-linux-arm64-gnu": "4.19.0",
|
|
125
|
+
"@supercov/cli-linux-arm64-musl": "4.19.0",
|
|
126
|
+
"@supercov/cli-linux-x64-gnu": "4.19.0",
|
|
127
|
+
"@supercov/cli-linux-x64-musl": "4.19.0",
|
|
128
|
+
"@supercov/cli-win32-arm64": "4.19.0",
|
|
129
|
+
"@supercov/cli-win32-x64": "4.19.0"
|
|
130
130
|
},
|
|
131
131
|
"peerDependencies": {
|
|
132
132
|
"@playwright/test": ">=1.55.0",
|