diff --git a/build.zig b/build.zig index ed3f9e25..067a3c84 100644 --- a/build.zig +++ b/build.zig @@ -64,12 +64,14 @@ pub fn build(b: *std.build.Builder) !void { // ---- // compile - const exe_tests = b.addTest(.{ .root_source_file = .{ .path = "src/run_tests.zig" } }); - try common(exe_tests, options); + const tests = b.addTest(.{ .root_source_file = .{ .path = "src/run_tests.zig" } }); + try common(tests, options); + tests.single_threaded = true; + const run_tests = b.addRunArtifact(tests); // step const test_step = b.step("test", "Run unit tests"); - test_step.dependOn(&exe_tests.step); + test_step.dependOn(&run_tests.step); } fn common(