From 5d24e84851b1bb9f79f7237b8e6de22fe633a0d4 Mon Sep 17 00:00:00 2001 From: tareifz Date: Tue, 19 Nov 2024 20:17:14 +0300 Subject: [PATCH] run test fix --- build.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); }