Fix `zig build test` not running test suite
parent
78912f87c1
commit
02a2b54f94
|
@ -18,10 +18,11 @@ pub fn build(b: *std.build.Builder) void {
|
|||
});
|
||||
b.installArtifact(lib);
|
||||
|
||||
var main_tests = b.addTest(.{
|
||||
const main_tests = b.addTest(.{
|
||||
.root_source_file = .{ .path = "jwt.zig" },
|
||||
});
|
||||
const run_main_tests = b.addRunArtifact(main_tests);
|
||||
|
||||
const test_step = b.step("test", "Run library tests");
|
||||
test_step.dependOn(&main_tests.step);
|
||||
test_step.dependOn(&run_main_tests.step);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue