Fix `zig build test` not running test suite

pull/5/head
LeRoyce Pearson 2023-08-16 23:00:30 -06:00
parent 78912f87c1
commit 02a2b54f94
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}