supercov 0.0.54-x86_64-linux-gnu โ 1.0.0-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 +62 -5
- data/lib/supercov.rb +1 -1
- data/libexec/supercov +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f640ef823273344b4a027529d43f1f03282648ac0e360ee2a75252fd74ee3350
|
|
4
|
+
data.tar.gz: 59698f655f6bff745a988e5d3ad9732eb7aa33994b62dcc1593546c1b9012601
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ed5be167a40605598c81183e9739524daef6f37ab0c182f63e99bd149736e16b7e00e319adb541aaf15031d2a521d483e0f6dfd16b19050218f0acc5731f37a2
|
|
7
|
+
data.tar.gz: 80efabb80c5312f0ccf25439800e88e7b97bac29a3df22cf9c089ec39450f8a55ec8bb8740c1dc57d70b9868c94c8e6578d635518340f6d773912ee3eba86391
|
data/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**Code quality and coverage for coding agents**
|
|
4
4
|
|
|
5
|
-
**Supercov
|
|
5
|
+
**Supercov tells your coding agent what to fix and what to test.** It scores your code quality with [Jev](https://typesafe.ai), runs the test command you already use, and turns uncovered paths into small, actionable queries. Your agent picks a target, writes a focused test or a focused refactor, proves what improved, and keeps going.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Coverage needs no account, config file, import, custom reporter, or hosted service. Supercov is local, free, open source, and MIT licensed. Quality uses [Jev](https://typesafe.ai) and needs a key.
|
|
8
8
|
|
|
9
9
|
[Website](https://supercov.com) ยท [Documentation](https://supercov.com/docs) ยท [npm](https://www.npmjs.com/package/supercov) ยท [GitHub](https://github.com/supercorp-ai/supercov)
|
|
10
10
|
|
|
@@ -13,6 +13,41 @@ Supported by [Supercorp](https://supercorp.ai).
|
|
|
13
13
|
[Agent workflow](https://supercov.com/docs/agent-loop): ask your coding agent
|
|
14
14
|
to add a test in your own project, with a recorded example to follow along.
|
|
15
15
|
|
|
16
|
+
## Score your code
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
export TYPESAFE_API_KEY=... # get one at https://typesafe.ai
|
|
20
|
+
npx supercov quality
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
No arguments and no configuration. It finds your source, asks Jev a set of
|
|
24
|
+
yes/no questions about each file, and does the arithmetic itself, so every part
|
|
25
|
+
of a score is a claim you can check against the file.
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
Quality weak (3.8/10) over 163 files.
|
|
29
|
+
11 good, 52 fair, 100 weak.
|
|
30
|
+
|
|
31
|
+
Weakest:
|
|
32
|
+
weak runtime/python/supercov_runtime.py
|
|
33
|
+
long_method 0.96, deep_nesting 0.92, complex_conditional 0.89, +9 more
|
|
34
|
+
weak crates/supercov-engine/src/assertion_store.rs
|
|
35
|
+
long_method 0.96, deep_nesting 0.91, complex_conditional 0.86, +8 more
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Narrow to what fired, read one file in full, or review a change:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npx supercov quality gaps
|
|
42
|
+
npx supercov quality file src/server.ts
|
|
43
|
+
npx supercov quality patch # your uncommitted work, or your branch
|
|
44
|
+
npx supercov quality patch --annotate github # workflow annotations, no token
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Jev charges for what it reads and nothing for what it writes, so a megabyte of
|
|
48
|
+
source costs a little over a cent. Answers are cached by content, so a second
|
|
49
|
+
run pays only for what changed. See [Understanding quality](docs/quality.md).
|
|
50
|
+
|
|
16
51
|
## Start with the suite you already have
|
|
17
52
|
|
|
18
53
|
```bash
|
|
@@ -25,12 +60,33 @@ github.com/supercorp-ai/supercov/cmd/supercov@latest`.
|
|
|
25
60
|
|
|
26
61
|
Everything after `--` is your test command. Supercov runs it without changing your source, tests, runner configuration, or normal build output.
|
|
27
62
|
|
|
28
|
-
Then ask what is still uncovered:
|
|
63
|
+
Then read the result and ask what is still uncovered:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
npx supercov runs latest
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
run run_7fc676ba671d42be
|
|
71
|
+
command: npm test
|
|
72
|
+
|
|
73
|
+
Coverage
|
|
74
|
+
Lines 100.00% (5/5)
|
|
75
|
+
Branches 66.67% (4/6)
|
|
76
|
+
MC/DC 33.33% (1/3)
|
|
77
|
+
```
|
|
29
78
|
|
|
30
79
|
```bash
|
|
31
80
|
npx supercov runs latest gaps --limit 10
|
|
32
81
|
```
|
|
33
82
|
|
|
83
|
+
```
|
|
84
|
+
Coverage gaps โ only files with unresolved obligations
|
|
85
|
+
|
|
86
|
+
src/pricing.js
|
|
87
|
+
uncovered: lines 0 statements 1 functions 0 branch outcomes 0 MC/DC conditions 2
|
|
88
|
+
```
|
|
89
|
+
|
|
34
90
|
After your agent adds a test, rerun the complete suite and prove the gain:
|
|
35
91
|
|
|
36
92
|
```bash
|
|
@@ -243,6 +299,7 @@ npx supercov clean # remove all runs and the build cache
|
|
|
243
299
|
## Documentation
|
|
244
300
|
|
|
245
301
|
- [Getting started](https://supercov.com/docs/getting-started)
|
|
302
|
+
- [Understanding quality](https://supercov.com/docs/quality)
|
|
246
303
|
- [Agent workflow](https://supercov.com/docs/agent-loop)
|
|
247
304
|
- [Understanding assertions](docs/assertions.md)
|
|
248
305
|
- [Troubleshooting](https://supercov.com/docs/troubleshooting)
|
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: 0.0
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: x86_64-linux-gnu
|
|
6
6
|
authors:
|
|
7
7
|
- Supercorp
|
|
@@ -44,5 +44,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
44
44
|
requirements: []
|
|
45
45
|
rubygems_version: 3.6.9
|
|
46
46
|
specification_version: 4
|
|
47
|
-
summary:
|
|
47
|
+
summary: Code quality and coverage for coding agents
|
|
48
48
|
test_files: []
|