diff --git a/build.zig b/build.zig index 6ece0e4..2421578 100644 --- a/build.zig +++ b/build.zig @@ -179,8 +179,9 @@ pub fn build(b: *zbs.Builder) void { .optimize = optimize, }); addCmphDeps(src_test, cmph); + const run = b.addRunArtifact(src_test); const test_step = b.step("test", "Run the tests"); - test_step.dependOn(&src_test.step); + test_step.dependOn(&run.step); } }