#--test-filter with zig build test?

1 messages · Page 1 of 1 (latest)

distant dock
#

Is it possible to set --test-filter (from zig test) when running tests with zig build test? I want to iterate on one particular test.

Thanks!

balmy ermine
#

zig build test is a step you created, so you can add a -Dtest-filter option

distant dock
#

is there filtering stuff built in there that I can pass it to? Or completely implement in my build.zig

balmy ermine
#

you just pass a filter when you add a test artifact

vague ravine
#

there is a filter field in the TestOptions struct you pass to addTest