supercov 0.0.44-x86_64-linux-gnu → 0.0.46-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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -12
  3. data/lib/supercov.rb +1 -1
  4. data/libexec/supercov +0 -0
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c229ecd294c4a1470279ec9c6339a901415d307c55087b67f40d72034bd47d5
4
- data.tar.gz: bc8e3e9f0c574be534396912258a335b77b0de7cbac7993daf1e59940dcb77ef
3
+ metadata.gz: d74eb73f78d2494c4cdbfaeccec41049c1ddb406e7d39205531cb05a17f69363
4
+ data.tar.gz: 7d68a4dd8c08341dc684cab1ceab1163d8698f375d2c62b52d68fc94747d912e
5
5
  SHA512:
6
- metadata.gz: fcd304ff790e8b6bace76f92af729de1525e8cf6a150845daed4dbcdcfdcece8cd8662eddb51fed92de409b9e2e803379a6cf92a6e7c0d9ea4f6a11d43d7a505
7
- data.tar.gz: 1a8a7fe3dfbd6ed054f246d006968b5feb4985b173e490e3d2ff4b48a25c727c332a2fbe3ee7ce64f80451c44190d0971a080c42ddf6d813d7252c1e99b13d19
6
+ metadata.gz: 6ba7c7d5c8b09f836e7fab24f3a4d33614b4d23ada244e9f26a2cb8ef8d1a1579b04d61f74f22761ae329a6bf763cd1ef98add59f65ecfb86948c202ddf87630
7
+ data.tar.gz: d3e78fc08cd53ca71692abe88ee71d55bb2eb1e32d642bde4e5546c0eea4adac2782666db8def7bca6c9bf9c66427da2d5d239788dc0c56cd276fda22f501a65
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
- ## Inspect assertion evidence (JS/TS)
49
+ ## Map what assertions check
50
50
 
51
- After a run, inspect what existing assertions appear to check:
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 --limit 5
55
- npx supercov runs latest assertions --pragmas --json
56
- npx supercov runs latest assertions --evidence /tests --limit 5 --json
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 --json
63
+ npx supercov runs <run> # includes the assertion percentage in the regular report
57
64
  ```
58
65
 
59
- This npm-only query uses the run archive and matching source; it adds no new
60
- test-time instrumentation. It requires a compatible project TypeScript compiler
61
- API (5.8.3 and native 7.0.2 are tested). Results are candidates, not proof
62
- that changes are safe or a verified assertion percentage. Follow
63
- [`assertion-evidence.md`](docs/assertion-evidence.md) for provenance, optional
64
- assertion hints, pagination, and limitations.
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` assertions link the evidence they check |
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Supercov
4
- VERSION = "0.0.44"
4
+ VERSION = "0.0.46"
5
5
  end
data/libexec/supercov CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: supercov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.44
4
+ version: 0.0.46
5
5
  platform: x86_64-linux-gnu
6
6
  authors:
7
7
  - Supercorp