allow tests to fail #8629
Labels
accepted
This proposal is planned.
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
standard library
This issue involves writing Zig code for the standard library.
Milestone
I propose to modify the default test runner so that when a test returns an error, the test is marked as failure, however subsequent tests are still run. At the end will be reported the failures and successes, and the final exit code of
zig test
will be 0 if and only if all tests succeeded with no memory leaks.Follow-up proposal: modify
std.testing.expectEqual
and similar functions to returnerror.ZigTestFailed
rather than calling panic.Motivation is to increase developer iteration speed; it might help to find out more than one thing is broken at a time.
The text was updated successfully, but these errors were encountered: