tests:affected
List likely tests for changed files.
Syntax#
vigil tests:affected [--json]
Options#
| Flag | Description |
|---|
--json | Emit the versioned JSON envelope. |
Examples#
vigil tests:affected [--json]
vigil tests:affected --json
Example Use Cases#
- Use this command when you need to list likely tests for changed files.
- Run it in local checks, scripts, or CI when read-only evidence is needed.
Technical Contract#
| Binding | builtin:tests:affected |
|---|
| Stability | stable |
|---|
| Timeout | 10m0s |
|---|
| Required tools | None |
|---|
| Capabilities | filesystem:read, process, git:read |
|---|
| Output formats | text, json |
|---|