supercov 0.0.44-x86_64-linux-gnu → 0.0.45-x86_64-linux-gnu
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.
- checksums.yaml +4 -4
- data/README.md +21 -12
- data/lib/supercov.rb +1 -1
- data/libexec/supercov +0 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9df1673923e594c5d710ed7ead3ebef187bd3fb94298063b7d4f787bd22d81db
|
|
4
|
+
data.tar.gz: 8270e61b2248a97aaf5a9ac6471eb733f1f2fbc39ba72abf878bb697c0254802
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 47d8be56ace656dcde5e58df6e1b108a85f7b2ffb284ef72a2c1384f65cbe25c10a3f0b48f21fe5bcb959dbd5eadcf422100e85713287afd0fdd240066e2873f
|
|
7
|
+
data.tar.gz: e28351188eaf12f83cdd3eee255961dcebbc79339d2b8142a9bd6b45c46db606cd51f7e58ffdf967ef32bc6e974397debe74f524aa54599631b02f30bcedc535
|
data/README.md
CHANGED
|
@@ -46,22 +46,30 @@ npx supercov -- python -m unittest
|
|
|
46
46
|
npx supercov -- bundle exec rspec
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
##
|
|
49
|
+
## Map what assertions check
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
Each normal test run creates an assertion map automatically. An agent can
|
|
52
|
+
optionally fill in what the assertions check:
|
|
52
53
|
|
|
53
54
|
```sh
|
|
54
|
-
npx supercov runs latest assertions --
|
|
55
|
-
|
|
56
|
-
npx supercov runs
|
|
55
|
+
npx supercov runs latest assertions --json
|
|
56
|
+
# Pin the returned run ID. Inspect assertions and the source that ran:
|
|
57
|
+
npx supercov runs <run> assertion <assertion-id>
|
|
58
|
+
npx supercov runs <run> source src/example.ts
|
|
59
|
+
# Edit assertions.json, then validate and acknowledge:
|
|
60
|
+
npx supercov runs <run> assertions validate --json
|
|
61
|
+
# Copy examined expectedBasis tokens into assertions.json; save again.
|
|
62
|
+
npx supercov runs <run> assertions check --require-mappings --require-observed --json
|
|
63
|
+
npx supercov runs <run> # includes the assertion percentage in the regular report
|
|
57
64
|
```
|
|
58
65
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
[
|
|
64
|
-
assertion
|
|
66
|
+
After code or tests change, run the same test command again. Supercov reuses the
|
|
67
|
+
newest available map for that command and language and identifies dirty flows. Rust owns
|
|
68
|
+
validation, change tracking and reporting; the agent supplies semantic reasoning.
|
|
69
|
+
The score is agent-assessed and separate from MC/DC. See
|
|
70
|
+
[assertion maps](docs/assertion-maps.md) for the format and JS/TS limits, or run
|
|
71
|
+
`supercov docs assertion-agent` for the agent workflow. `supercov assertions schema`
|
|
72
|
+
exports the editor schema; `assertions validate --file <path>` checks JSON syntax.
|
|
65
73
|
|
|
66
74
|
## Give Supercov a job
|
|
67
75
|
|
|
@@ -170,7 +178,7 @@ Supercov uses exact per-test attribution where an adapter is available. For othe
|
|
|
170
178
|
| --- | --- |
|
|
171
179
|
| Playwright | Exact per test, worker, retry, outcome, action, and assertion phase |
|
|
172
180
|
| Vitest | Exact per test, with setup execution kept separate |
|
|
173
|
-
| Jest | Exact per test, including parameterized tests; `expect`
|
|
181
|
+
| Jest | Exact per test, including parameterized tests; exact `expect` occurrence identity for assertion maps |
|
|
174
182
|
| `node:test` | Exact per test |
|
|
175
183
|
| AVA and Mocha | Aggregate structural coverage |
|
|
176
184
|
| Cargo's standard libtest runner | Exact test, attempt, and passing-assertion identity |
|
|
@@ -223,6 +231,7 @@ npx supercov clean # remove all runs and the build cache
|
|
|
223
231
|
|
|
224
232
|
- [Getting started](https://supercov.com/docs/getting-started)
|
|
225
233
|
- [Agent workflow](https://supercov.com/docs/agent-loop)
|
|
234
|
+
- [Understanding assertions](docs/assertions.md)
|
|
226
235
|
- [Troubleshooting](https://supercov.com/docs/troubleshooting)
|
|
227
236
|
- [CLI reference](https://supercov.com/docs/cli)
|
|
228
237
|
- [Supported languages and test suites](https://supercov.com/docs/supported-suites)
|
data/lib/supercov.rb
CHANGED
data/libexec/supercov
CHANGED
|
Binary file
|