Skip to main content
Prints one test file path per line for every test in the current project that matches the provided filters. Pipe the output into other commands. Requires tests to exist locally as YAML files.

Arguments

array
Tests to list, given as test file paths, directories, or test-name substrings. Defaults to every test in the current project.

Common flags

string
Path to the Momentic configuration file. When omitted, Momentic searches the current directory and its parents for momentic.config.yaml or a workspace configuration. Use this flag to select a project when discovery finds more than one.
string
When using workspaces, load the project whose name matches the filter.

Filtering

array
Only include tests with one of the specified labels.
array
Only include tests whose file path matches any of the provided regex patterns. The pattern only needs to match part of the path.
array
Exclude tests whose file path matches any of the provided regex patterns.

Examples

List every test in the project:
List tests under a specific folder:
List tests in a folder, then run the same folder: