vulkro bench
Run a fixtures directory and check that every positive sample fires its rule and every negative sample stays silent.
vulkro bench --fixtures ./bench/fixtures
Fixtures live at <rule>/<sample>. A sample's name sets its polarity, in any of these shapes: positive_x.ext, positive.ext or a positive/ directory, pos_x.ext, or x_positive.ext (and the same with negative / neg_). Use it to catch regressions in your own rule packs.
Flags
| Flag | Description |
|---|---|
--fixtures <PATH> | Fixtures root. Default bench/fixtures. |
Exit codes
0 every fixture behaves as expected, 1 at least one fixture breaks the positive / negative contract, 2 IO error (for example, the directory is missing).
See also: vulkro rules, Custom rules.