Appearance
vix tests
Run project tests using CTest.
Usage
bash
vix tests [path] [options]Description
vix tests:
- Resolves build directory from CMakePresets.json
- Uses the preset (default: dev-ninja)
- Executes CTest
- Integrates with Vix build system
It is equivalent to:
vix check --testsBut provides a cleaner developer interface.
Test Flags
--watch Watch files and re-run tests on changes
--list List tests only (ctest --show-only)
--fail-fast Stop on first failure
--run Run runtime check after testsCTest Passthrough
Use -- to pass raw arguments directly to CTest:
bash
vix tests -- --output-on-failureRun specific test suite:
bash
vix tests -- --output-on-failure -R MySuitePreset Behavior
- Preset is taken from forwarded args (e.g. --preset release)
- Default preset: dev-ninja
Example:
bash
vix tests --preset releaseExamples
Basic run:
bash
vix testsWatch mode:
bash
vix tests --watchList tests:
bash
vix tests --listStop on first failure:
bash
vix tests --fail-fastRun tests + runtime:
bash
vix tests --runSpecify project path:
bash
vix tests ./examples/blogNotes
- Build directory is derived from CMakePresets.json (binaryDir).
- Other
vix checkoptions may be forwarded. - Designed for clean CI integration.
vix tests integrates seamlessly into the Vix development workflow.