# CLI Usage ```bash bun test ``` ### Execution Control Set the per-test timeout in milliseconds (default 5000) Re-run each test file NUMBER times, helps catch certain bugs Default retry count for all tests. Failed tests will be retried up to NUMBER times. Overridden by per-test {`{ retry: N }`} Treat all tests as test.concurrent() tests Run tests in random order Set the random seed for test randomization Exit the test suite after NUMBER failures. If you do not specify a number, it defaults to 1. Maximum number of concurrent tests to execute at once (default 20) ### Test Filtering Include tests that are marked with test.todo() Run only tests with a name that matches the given regex. Alias: -t ### Reporting Test output reporter format. Available: junit (requires --reporter-outfile), dots. Default: console output. Output file path for the reporter format (required with --reporter) Enable dots reporter. Shorthand for --reporter=dots ### Coverage Generate a coverage profile Report coverage in text and/or lcov. Defaults to text Directory for coverage files. Defaults to coverage ### Snapshots Update snapshot files. Alias: -u ## Examples Run all test files: ```bash terminal icon="terminal" bun test ``` Run all test files with "foo" or "bar" in the file name: ```bash terminal icon="terminal" bun test foo bar ``` Run all test files, only including tests whose names includes "baz": ```bash terminal icon="terminal" bun test --test-name-pattern baz ```