Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

stacy test

Run tests

Synopsis

stacy test <TEST> [OPTIONS]

Description

Discovers and runs test scripts from the test/ directory. Tests are Stata scripts that use assertion commands. Supports filtering, parallel execution, and verbose output for debugging failures.

Arguments

ArgumentDescription
<TEST>Specific test to run

Options

OptionDescription
-f, --filterFilter tests by pattern
--listList tests without running
--parallelRun tests in parallel
-q, --quietSuppress progress output
-V, --verboseShow full log context for failures

Examples

Run all tests

stacy test

Run specific test

stacy test test_regression

Filter tests

stacy test -f 'regression*'

Exit Codes

CodeMeaning
0All tests passed
1One or more tests failed
5Test not found

See Exit Codes Reference for details.

See Also