nulltickets
nulltickets copied to clipboard
zig build test silently runs 0 unit tests
Bug
zig build test on current main compiles and exits 0 without running any tests.
Repro
git clone https://github.com/nullclaw/nulltickets && cd nulltickets
zig build test --summary all
# Build Summary: 5/5 steps succeeded
# test success
# +- run test success 11ms <- no test count, no tests executed
Cause
build.zigtest step roots atsrc/main.zigonly.src/main.zighas notest { ... }block referencing the other modules, so test declarations instore.zig,api.zig,domain.zig,config.zigare never pulled into the test build.- Additionally those module tests no longer compile since the zig 0.16 migration (PR #2):
std.testing.tmpDirdirs needstd_compat.fs.Dir.wrapforwriteFile/realpathAlloc/makePath, andObjectMap.deinitnow takes an allocator. Threeapi.zigauth tests also leak (need an arena forContext.allocator).
Fix
Add root test block + compat/arena fixes → 18 unit tests run.
PR incoming: fix/wire-module-tests.