From fd77a99150e5c5e87a1b15cad341383ce7756fa5 Mon Sep 17 00:00:00 2001 From: Yves Biener Date: Mon, 7 Oct 2024 22:17:20 +0200 Subject: [PATCH] rem(build): test for non-existing file --- build.zig | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/build.zig b/build.zig index 4f45ba7..c5be9c5 100644 --- a/build.zig +++ b/build.zig @@ -63,16 +63,6 @@ pub fn build(b: *std.Build) void { const run_step = b.step("run", "Run the app"); run_step.dependOn(&run_cmd.step); - // Creates a step for unit testing. This only builds the test executable - // but does not run it. - const lib_unit_tests = b.addTest(.{ - .root_source_file = b.path("src/root.zig"), - .target = target, - .optimize = optimize, - }); - - const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests); - const exe_unit_tests = b.addTest(.{ .root_source_file = b.path("src/main.zig"), .target = target, @@ -85,6 +75,5 @@ pub fn build(b: *std.Build) void { // the `zig build --help` menu, providing a way for the user to request // running the unit tests. const test_step = b.step("test", "Run unit tests"); - test_step.dependOn(&run_lib_unit_tests.step); test_step.dependOn(&run_exe_unit_tests.step); }