While hacking on the standard library, how do I only run a subset of the standard library tests (they seem to take a while on my little laptop)?
I have already tried:
zig build test-std --test-filter readStruct
While hacking on the standard library, how do I only run a subset of the standard library tests (they seem to take a while on my little laptop)?
I have already tried:
zig build test-std --test-filter readStruct
well rather helpfully, it emits test failures as it goes…
Maybe I just need to let it run at least once to fill the cache
Check zig build --help
for the options:
...
-Dtest-filter=[list] Skip tests that do not match any filter
-Dtest-target-filter=[list] Skip tests whose target triple do not match any filter
...
Also check out the Contributing guide, in particular Directly Testing the Standard Library with zig test