Running Tests
Execution
dcr test
Builds the project, then compiles and runs test files from tests/.
Profiles
dcr test # debug (default)
dcr test --release # release
dcr test --debug # explicit debug
Output
=====================
Testsuite summary
=====================
TOTAL: 5
PASS: 3
SKIP: 1
FAIL: 1
=====================
Exit code
- 0 — all tests passed (FAIL = 0)
- 1 — test failures or build error
What gets built
- All
.cfiles fromtests/(.cppnot supported) - Include path:
tests/(fordcr_test.h) - Linked with project if
package.type = "lib"orkind = "staticlib"/"sharedlib"