| author | |
| committer | |
| log | 064377be9aaf409bf483f512354ef22f656bf213 |
| tree | 4cdaf2fe444083c465c2b81e3a8b780c9bdd2ebe |
| parent | fc6f84f3f08aca0d4e2352091cc2db2ca5779c7d |
| signature |
2 files changed, 5 insertions(+), 4 deletions(-)
lib/std/special/test_runner.zig+4-3| ... | ... | @@ -31,8 +31,9 @@ pub fn main() anyerror!void { |
| 31 | 31 | } |
| 32 | 32 | } |
| 33 | 33 | root_node.end(); |
| 34 | if (ok_count != test_fn_list.len) { | |
| 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); | |
| 34 | if (ok_count == test_fn_list.len) { | |
| 35 | std.debug.warn("All tests passed.\n"); | |
| 36 | } else { | |
| 37 | std.debug.warn("{} passed; {} skipped.\n", ok_count, skip_count); | |
| 37 | 38 | } |
| 38 | 39 | } |
test/cli.zig+1-1| ... | ... | @@ -87,7 +87,7 @@ fn exec(cwd: []const u8, argv: []const []const u8) !ChildProcess.ExecResult { |
| 87 | 87 | fn testZigInitLib(zig_exe: []const u8, dir_path: []const u8) !void { |
| 88 | 88 | _ = try exec(dir_path, [_][]const u8{ zig_exe, "init-lib" }); |
| 89 | 89 | const test_result = try exec(dir_path, [_][]const u8{ zig_exe, "build", "test" }); |
| 90 | testing.expect(std.mem.eql(u8, test_result.stderr, "")); | |
| 90 | testing.expect(std.mem.endsWith(u8, test_result.stderr, "All tests passed.\n")); | |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | fn testZigInitExe(zig_exe: []const u8, dir_path: []const u8) !void { |