diff --git a/build.zig b/build.zig index e44cbf6..ea7c377 100644 --- a/build.zig +++ b/build.zig @@ -6,12 +6,14 @@ pub fn build(b: *std.Build) void { _ = b.addModule("string", .{ .root_source_file = b.path("zig-string.zig") }); - var main_tests = b.addTest(.{ + const main_tests = b.addTest(.{ .root_source_file = b.path("zig-string-tests.zig"), .target = target, .optimize = optimize, }); + b.installArtifact(main_tests); + const run_arti = b.addRunArtifact(main_tests); const test_step = b.step("test", "Run library tests"); - test_step.dependOn(&main_tests.step); + test_step.dependOn(&run_arti.step); }