supercov 2.0.0-aarch64-linux-gnu → 3.0.0-aarch64-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 +52 -22
- data/lib/supercov.rb +1 -1
- data/libexec/supercov +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f04c9adb9d11cd451b9b93a6eef78039dd3c31ab240b17bcbf191ebd13a25ebf
|
|
4
|
+
data.tar.gz: 382e09dbf818174a5e28351ec71cf70d14391df971ab15c515930b162c4eda85
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6271a183813dfe1a488b2a178f57d41cdd71d6e10c365afd12c63c047e76b7e8527e7f6c400c9430beae9b14602ddbff4bfef99f722fc584440a7e2e8f212f15
|
|
7
|
+
data.tar.gz: 622871cdc3ea037bf9cd87eac48f7d734334e5690e52ecd943fe838c5e0c55a306b485b8ec7dc70c7f4b4e1e527d1a315a6b02f74a065b1e5c05be6ddc9685e4
|
data/README.md
CHANGED
|
@@ -12,10 +12,12 @@ Measure code quality with npx supercov.
|
|
|
12
12
|
|
|
13
13
|
Scoring needs a [TypeSafe AI](https://typesafe.ai) API key, and your coding agent will usually ask you for it. It costs about a cent per megabyte of source. Coverage needs no account, config file, import, custom reporter, or hosted service. Supercov is local, free, open source, and MIT licensed.
|
|
14
14
|
|
|
15
|
-
[Website](https://supercov.com) · [Documentation](https://supercov.com/docs) · [npm](https://www.npmjs.com/package/supercov) · [GitHub](https://github.com/supercorp-ai/supercov)
|
|
15
|
+
[Website](https://supercov.com) · [Documentation](https://supercov.com/docs) · [npm](https://www.npmjs.com/package/supercov) · [GitHub](https://github.com/supercorp-ai/supercov) · [Discord](https://discord.gg/CudcAH53yF)
|
|
16
16
|
|
|
17
17
|
Supported languages: [JavaScript](https://supercov.com/docs/javascript) · [TypeScript](https://supercov.com/docs/javascript) · [Rust](https://supercov.com/docs/rust) · [Python](https://supercov.com/docs/python) · [Ruby](https://supercov.com/docs/ruby) · [Go](https://supercov.com/docs/go) · [Java](https://supercov.com/docs/java) · [Kotlin](https://supercov.com/docs/kotlin).
|
|
18
18
|
|
|
19
|
+
In Claude Code, Codex and Gemini CLI you can also [install it as a plugin](#give-supercov-a-job).
|
|
20
|
+
|
|
19
21
|
Supported by [Supercorp](https://supercorp.ai).
|
|
20
22
|
|
|
21
23
|
[Agent workflow](https://supercov.com/docs/agent-loop): ask your coding agent
|
|
@@ -139,35 +141,57 @@ npx supercov -- python -m unittest
|
|
|
139
141
|
npx supercov -- bundle exec rspec
|
|
140
142
|
```
|
|
141
143
|
|
|
142
|
-
##
|
|
144
|
+
## See what the tests assert
|
|
143
145
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
+
Coverage says which code ran; assertion coverage says which of it the tests
|
|
147
|
+
would catch breaking. Supercov asks [Jev](https://typesafe.ai), test by test,
|
|
148
|
+
whether changing each statement the test ran would make it fail:
|
|
146
149
|
|
|
147
150
|
```sh
|
|
148
|
-
npx supercov
|
|
149
|
-
|
|
150
|
-
npx supercov runs
|
|
151
|
-
npx supercov runs <run> source src/example.ts
|
|
152
|
-
# Edit assertions.json, then validate and acknowledge:
|
|
153
|
-
npx supercov runs <run> assertions validate --json
|
|
154
|
-
# Copy examined expectedBasis tokens into assertions.json; save again.
|
|
155
|
-
npx supercov runs <run> assertions check --require-mappings --json
|
|
156
|
-
npx supercov runs <run> # includes the assertion percentage in the regular report
|
|
151
|
+
npx supercov -- npm test
|
|
152
|
+
TYPESAFE_API_KEY=... npx supercov runs latest assertions assess
|
|
153
|
+
npx supercov runs latest assertions # the share asserted and what is not
|
|
157
154
|
```
|
|
158
155
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
The score is agent-assessed and separate from MC/DC. See
|
|
163
|
-
[assertion maps](docs/assertion-maps.md) for the format and JS/TS limits, or run
|
|
164
|
-
`supercov docs assertion-agent` for the agent workflow. `supercov assertions schema`
|
|
165
|
-
exports the editor schema; `assertions validate --file <path>` checks JSON syntax.
|
|
156
|
+
Answers are reused across runs whenever the question is the same, so after a
|
|
157
|
+
commit only what changed is asked again. Every language Supercov measures. See
|
|
158
|
+
[assertion coverage](docs/assertions.md).
|
|
166
159
|
|
|
167
160
|
## Give Supercov a job
|
|
168
161
|
|
|
169
162
|
Paste one of these prompts into Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, or any coding agent that can run terminal commands.
|
|
170
163
|
|
|
164
|
+
Or install the agent skill, and your agent reaches for Supercov on its own when you ask for tests, coverage, refactoring or a security scan. In Claude Code:
|
|
165
|
+
|
|
166
|
+
```text
|
|
167
|
+
/plugin marketplace add supercorp-ai/supercov
|
|
168
|
+
/plugin install supercov@supercov
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
In Codex:
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
codex plugin marketplace add supercorp-ai/supercov
|
|
175
|
+
codex plugin add supercov@supercov
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
In Gemini CLI:
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
gemini extensions install https://github.com/supercorp-ai/supercov
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
For Cursor, GitHub Copilot and other agents that read skills: `npx skills add supercorp-ai/supercov`.
|
|
185
|
+
|
|
186
|
+
The Claude Code plugin and the Gemini CLI extension also add four commands you can type:
|
|
187
|
+
|
|
188
|
+
| Command | What it does |
|
|
189
|
+
| --- | --- |
|
|
190
|
+
| `/supercov:coverage [test command]` | Writes one test for code no test reaches, and reports coverage before and after |
|
|
191
|
+
| `/supercov:security [patch]` | Scans the repository, or a change, for security vulnerabilities |
|
|
192
|
+
| `/supercov:quality [patch]` | Ranks files by code smells, or checks what a change introduced |
|
|
193
|
+
| `/supercov:review [--base ref]` | Checks a branch or uncommitted change for security and quality problems |
|
|
194
|
+
|
|
171
195
|
### Write the first useful test
|
|
172
196
|
|
|
173
197
|
```text
|
|
@@ -280,9 +304,11 @@ Supercov uses exact per-test attribution where an adapter is available. For othe
|
|
|
280
304
|
| --- | --- |
|
|
281
305
|
| Playwright | Exact per test, worker, retry, outcome, action, and assertion phase |
|
|
282
306
|
| Vitest | Exact per test, with setup execution kept separate |
|
|
283
|
-
| Jest | Exact per test, including parameterized tests
|
|
307
|
+
| Jest | Exact per test, including parameterized tests |
|
|
284
308
|
| `node:test` | Exact per test |
|
|
285
|
-
|
|
|
309
|
+
| Mocha | Exact per test and retry, `--parallel` included |
|
|
310
|
+
| AVA | Exact per test, concurrent tests included |
|
|
311
|
+
| node-tap 15 and newer | Exact per subtest |
|
|
286
312
|
| Cargo's standard libtest runner | Exact test, attempt, and passing-assertion identity |
|
|
287
313
|
| rustdoc doctests | Exact per doctest |
|
|
288
314
|
| cargo-nextest | Exact test, attempt, retry, and binary identity |
|
|
@@ -352,6 +378,10 @@ npx supercov runs clean # remove all runs and the build cache
|
|
|
352
378
|
|
|
353
379
|
[MIT licensed](LICENSE). Inspect, extend, and run it anywhere.
|
|
354
380
|
|
|
381
|
+
## Community
|
|
382
|
+
|
|
383
|
+
Ask questions, share what you measured, and talk to the people building Supercov on [Discord](https://discord.gg/CudcAH53yF).
|
|
384
|
+
|
|
355
385
|
## Contributors
|
|
356
386
|
|
|
357
387
|
- [@DaVinciTachyon](https://github.com/DaVinciTachyon)
|
data/lib/supercov.rb
CHANGED
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:
|
|
4
|
+
version: 3.0.0
|
|
5
5
|
platform: aarch64-linux-gnu
|
|
6
6
|
authors:
|
|
7
7
|
- Supercorp
|
|
@@ -9,7 +9,8 @@ bindir: exe
|
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies: []
|
|
12
|
-
description:
|
|
12
|
+
description: Runs the project's existing tests, measures line, branch and MC/DC coverage,
|
|
13
|
+
and points coding agents at untested code, security risks and code smells.
|
|
13
14
|
email:
|
|
14
15
|
- hello@supercorp.ai
|
|
15
16
|
executables:
|