Open freakmangd opened 1 year ago
Hmm, the unnamed one might be a bit of an issue, as it seems like it cannot be filtered (from zig docs):
By convention, non-named tests should only be used to make other tests run. Non-named tests cannot be filtered.
It says that unnamed tests should only be used to run other tests, so maybe they should only run when the whole file is running.
I'll try to look into this
Ok, so skipping unnamed tests is impossible (at least with standard test runner) right now in zig, so they will always run (from zig docs):
[...] Note that non-named tests are run even when using the --test-filter [text] command line parameter.
The problem is of two parts now:
test0
test1
, etc., same way they currently appear in zig test
command.
test "add"
works, but the other two tests don't.We can get
test add
working just by changing this line:I couldn't figure out a way to capture unnamed tests, but that's mainly because I'm unfamiliar with the system, I'm sure its doable.