test
Build and run tests.
Description
Compiles and runs unit tests.
Usage
coffee test
Implementation Notes
- Finds
Coffee.tomlin current or parent directories - Test sources: from
[test]section sources if defined, else globstests/*.c - Compiles project sources (
src/*.c) + test sources into a test runner binary - Injects
-DCOFFEE_TEST_RUNNERto activate the test framework entry point - Resolves dependency include paths/flags via lockfile; falls back to
deps/filesystem - Compiler:
$CCorclang; pass--verbose/-vfor compiler output - Filter:
coffee test <filter>orTEST_FILTER=<filter>env var - Output:
build/debug/<name>-tests(respects--target-dir)
Need help?
Please wait: the project is still pre-alpha!
Cup of Coffee is an open source project inspired by Cargo, Rustup Crates, and Conda-forge.