adding custom test runner
All checks were successful
Build / build (push) Successful in 1m52s
Test / build (push) Successful in 5m1s

This commit is contained in:
2026-01-15 17:44:20 +01:00
parent 81f5e78863
commit 5466cbcced
2 changed files with 293 additions and 1 deletions

View File

@@ -56,7 +56,10 @@ pub fn build(b: *std.Build) void {
.{ .name = "nzsl", .module = nzsl.module("nzigsl") },
},
});
const lib_tests = b.addTest(.{ .root_module = test_mod });
const lib_tests = b.addTest(.{
.root_module = test_mod,
.test_runner = .{ .path = b.path("test/test_runner.zig"), .mode = .simple },
});
const run_tests = b.addRunArtifact(lib_tests);
const test_step = b.step("test", "Run Zig unit tests");
test_step.dependOn(&run_tests.step);