Docs/CLI

File Glob Specification

The CLI accepts glob patterns anywhere a list of tests is expected. Use them to run subsets of your suite without maintaining long file lists.

Supported syntax

  • * matches anything except a path separator.
  • ** matches any number of directories.
  • ? matches a single character.
  • {a,b} matches either literal.
  • ! negates a pattern.

Examples

bash
# every test under the billing folder
assrt run "tests/billing/**/*.yaml"

# two top-level groups, negate one file
assrt run "tests/{smoke,regression}/**" "!tests/regression/slow.yaml"

# glob in config
testsDir: ./tests
include:
  - "**/*.yaml"
exclude:
  - "**/_fixtures/**"