test — Run Test Checks
$ metis test
Runs ctest and optional coverage checks against your project, using the [test] section of .metis.toml (build_dir, coverage, and line/branch/function thresholds).
Options
| Flag | Description |
|---|---|
--coverage | Enable coverage reporting after tests |
--verbose, -V | Print detailed output |
| build-dir | Positional arg to override the build directory from config |
Examples
# Run tests $ metis test # Run tests with coverage $ metis test --coverage # Verbose output with custom build dir $ metis test --verbose build
Exit code: 0 if all tests pass. Non-zero on test failure or coverage threshold not met.