i'm trying to modify my zig build run setup so that if tests fail, the app won't run.
but it only tells me that tests fail after i let the app normally close
i know i can chain zig build test && zig build run but i'm wondering if i can let the build system do it for me instead of having to use two commands.
this is my test step code in build.zig
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);
const run_cmd = b.addRunArtifact(exe);
const run_step = b.step("run", "Run the app");
run_step.dependOn(test_step);
run_step.dependOn(b.getInstallStep());
run_step.dependOn(&run_cmd.step);