bivium 0.9.0 → 0.10.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/README.md +10 -6
- package/cli.js +51 -2192
- package/compute.js +4 -3
- package/config.js +3 -2
- package/docs/api.md +1 -0
- package/docs/ci.md +21 -0
- package/docs/cli.md +28 -2
- package/docs/config.md +50 -0
- package/docs/how-it-works.md +99 -0
- package/docs/tuning.md +24 -1
- package/errors.js +2 -1
- package/index.d.ts +6 -0
- package/package.json +1 -1
- package/shared-118ck8qt.js +40 -0
- package/{shared-07rt4zr7.js → shared-70w84x4c.js} +2007 -1350
- package/shared-84c9vs8a.js +475 -0
- package/shared-a5kfg3qy.js +68 -0
- package/shared-a8ebfhzf.js +319 -0
- package/shared-byhfswm9.js +1047 -0
- package/shared-graedbt1.js +12 -0
- package/shared-ke52sg37.js +149 -0
- package/shared-m8z858pr.js +26 -0
- package/shared-my87dhfd.js +164 -0
- package/{shared-550cvwt2.js → shared-px5a17nj.js} +1 -1
- package/shared-qe34axez.js +19 -0
- package/shared-rzbfbyqq.js +549 -0
- package/shared-v5gfq9zy.js +13 -0
- package/shared-wahjx628.js +66 -0
- package/shared-x17wzptz.js +4 -0
- package/shared-y7y281x3.js +103 -0
- package/shared-yfvpkeff.js +30 -0
- package/shared-211m8fjt.js +0 -69
package/README.md
CHANGED
|
@@ -15,9 +15,15 @@ and says why.
|
|
|
15
15
|
|
|
16
16
|
That's [Hono](https://github.com/honojs/hono),
|
|
17
17
|
a branch that edits its cookie helper.
|
|
18
|
-
|
|
19
18
|
Piped, or with `--list`, it prints the files, one per line.
|
|
20
19
|
|
|
20
|
+
**It runs them in your runner**, and says how the run ended:
|
|
21
|
+
|
|
22
|
+
<picture>
|
|
23
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/metonym/bivium/master/.github/assets/run-dark.svg">
|
|
24
|
+
<img alt="bivium run main on Hono, a branch that documents its CORS middleware: 7 of 103 tests run for 1 changed file; Vitest queues the 7 files, passes them one by one, 280 tests in all, and bivium closes with unit passed in 3.06 s" src="https://raw.githubusercontent.com/metonym/bivium/master/.github/assets/run-light.svg">
|
|
25
|
+
</picture>
|
|
26
|
+
|
|
21
27
|
**Every selection has a reason.**
|
|
22
28
|
`why` shows how a change reaches a test, file by file,
|
|
23
29
|
with the line that connects each one:
|
|
@@ -65,7 +71,7 @@ bunx bivium run # run them: vitest run tests/Button.test.ts …
|
|
|
65
71
|
```
|
|
66
72
|
|
|
67
73
|
Exit status: 0 when done, 1 when `check` finds problems, 2 for an error;
|
|
68
|
-
`run` exits with its command's status.
|
|
74
|
+
`run` exits with its command's status, or 130 on Ctrl-C.
|
|
69
75
|
|
|
70
76
|
## Common tasks
|
|
71
77
|
|
|
@@ -82,9 +88,6 @@ bivium why tests/Button.test.ts
|
|
|
82
88
|
# What bivium can't see, each with its fix
|
|
83
89
|
bivium check
|
|
84
90
|
|
|
85
|
-
# Which files reach the most tests
|
|
86
|
-
bivium graph --top 10
|
|
87
|
-
|
|
88
91
|
# In GitHub Actions: write each suite's selection to the step's outputs
|
|
89
92
|
bivium plan origin/main --github
|
|
90
93
|
```
|
|
@@ -106,7 +109,8 @@ result.suites.unit; // { mode: "some", files: [...] }; result.suites.e2e is a ty
|
|
|
106
109
|
## Docs
|
|
107
110
|
|
|
108
111
|
- [Config](https://github.com/metonym/bivium/blob/master/docs/config.md):
|
|
109
|
-
every key, and the `@depends-on`, `@
|
|
112
|
+
every key, and the `@depends-on`, `@depends-on-each`,
|
|
113
|
+
`@reads` and `@lists` comments
|
|
110
114
|
- [Tuning a plan](https://github.com/metonym/bivium/blob/master/docs/tuning.md):
|
|
111
115
|
when a change runs too much, and what `check` reports
|
|
112
116
|
- [Recipes](https://github.com/metonym/bivium/blob/master/docs/recipes.md):
|