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

FlagDescription
--coverageEnable coverage reporting after tests
--verbose, -VPrint detailed output
build-dirPositional 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.