Hi,
I’m trying to test modules in my Zig project. In build.zig. Unfortunately, module tests are not working as expected.
Current setup and issues
- Using fullTest in build.zig for test configuration
- Tried both approaches to include module tests:
andrefAllDecls(@This());
_ = @import("<module_name>");
- When examining compiled test executable, only symbols from kernel_test.zig are present
- Other module symbols are missing in the final test binary
Environment
- Using latest nightly build of Zig
Could someone point out what might be wrong with this setup? Is there something specific about fullTest that I’m missing, or is there a different approach I should take to ensure module tests are properly included?
Rgrds,
Maciek