| ... | ... | @@ -15,14 +15,17 @@ pub fn main() anyerror!void { |
| 15 | 15 | for (test_fn_list) |test_fn, i| { |
| 16 | 16 | var test_node = root_node.start(test_fn.name, null); |
| 17 | 17 | test_node.activate(); |
| 18 | if (progress.terminal == null) std.debug.warn("{}/{} {}...", i + 1, test_fn_list.len, test_fn.name); |
| 18 | 19 | if (test_fn.func()) |_| { |
| 19 | 20 | ok_count += 1; |
| 20 | 21 | test_node.end(); |
| 22 | if (progress.terminal == null) std.debug.warn("OK\n"); |
| 21 | 23 | } else |err| switch (err) { |
| 22 | 24 | error.SkipZigTest => { |
| 23 | 25 | skip_count += 1; |
| 24 | 26 | test_node.end(); |
| 25 | 27 | progress.log("{}...SKIP\n", test_fn.name); |
| 28 | if (progress.terminal == null) std.debug.warn("SKIP\n"); |
| 26 | 29 | }, |
| 27 | 30 | else => return err, |
| 28 | 31 | } |
| ... | ... | @@ -30,5 +33,6 @@ pub fn main() anyerror!void { |
| 30 | 33 | root_node.end(); |
| 31 | 34 | if (ok_count != test_fn_list.len) { |
| 32 | 35 | progress.log("{} passed; {} skipped.\n", ok_count, skip_count); |
| 36 | if (progress.terminal == null) std.debug.warn("{} passed; {} skipped.\n", ok_count, skip_count); |
| 33 | 37 | } |
| 34 | 38 | } |