Skip to content

Commit c02e047

Browse files
authored
print tests passed msg (#7962)
1 parent 26d49e2 commit c02e047

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.zig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ pub fn build(b: *std.Build) void {
116116
const run_builtins_tests = b.addRunArtifact(builtins_tests);
117117
builtins_test_step.dependOn(&run_builtins_tests.step);
118118
test_step.dependOn(&run_builtins_tests.step);
119+
120+
// Add success message after all tests complete
121+
const tests_passed_step = b.addSystemCommand(&.{ "echo", "All tests passed!" });
122+
tests_passed_step.step.dependOn(&run_tests.step);
123+
tests_passed_step.step.dependOn(&run_builtins_tests.step);
124+
test_step.dependOn(&tests_passed_step.step);
119125
}
120126

121127
// Fmt zig code.

0 commit comments

Comments
 (0)