zig
zig copied to clipboard
Add test-runner std.testing output settings
All std.testing uses std.debug.print.
I've tried implementing custom test-runner, but I couldn't manage the output of the testing library. For example we have test:
test "sample" {
@import("std").testing.expectEqual(test_func(), 3);
}
When cycling over builtin.test_functions and running failing test - error message prints immideatly. But I need to print it with special prefix <ERROR::>, which is currently seems impossible.
I think supplying test runner with pointer to error message would be quite useful.