Skip to main content
Commands

vg tests

Which tests cover a node via call or coverage linkage. --missing shows untested nodes nearby. --run prints (or --exec runs) the minimal command to exercise exactly those tests.

Overview

vg tests shows which test files cover a node through call or coverage linkage. --missing inverts to find untested nodes nearby. --run or --exec prints or runs the minimal test command.


Usage

vg tests <name>
FlagDescription
<name>Node to inspect
--missingShow untested nodes nearby instead
--runPrint the command to run exactly these tests
--execRun that command
--pick <n>Pick the nth candidate when ambiguous

Examples

vg tests UserService.createUser
vg tests PaymentProcessor --run
vg tests AuthMiddleware --exec
vg tests LoginController --missing

Related

  • vg impact — Structural blast radius (with --tests)

Example use cases

Expand any use case to watch a live replay of the real @vibgrate/cli running against one of our test repositories. Nothing executes in your browser — these are recordings of actual runs, with the scan time shown as of now.

vg tests <symbol>

Related Documentation