Skip to main content

vulkro bench

Walk a fixtures directory and assert that every positive_<name>.<ext> fires the matching detector and every negative_<name>.<ext> stays silent. This catches detector regressions without per-rule integration tests. Useful when you maintain your own rule packs or fixtures.

Usage

vulkro bench --fixtures ./bench/fixtures

Flags

FlagDescriptionDefault
--fixtures <PATH>Root directory of <rule>/positive_*.<ext> and <rule>/negative_*.<ext> fixtures.bench/fixtures

Exit codes

  • 0 every fixture matches expectation.
  • 1 at least one fixture violates the positive / negative contract.
  • 2 IO failure (fixtures directory missing, and similar).