Fix tests that were not running.

This commit is contained in:
Madeorsk 2025-04-11 23:55:10 +02:00
parent cd90a76408
commit 6b0d21da60
Signed by: Madeorsk
GPG key ID: 677E51CA765BB79F
2 changed files with 3 additions and 5 deletions

View file

@ -22,10 +22,12 @@ pub fn build(b: *std.Build) void {
// Add unit tests.
const lib_unit_tests = b.addTest(.{
.root_module = lib_mod,
.root_source_file = b.path("tests/root.zig"),
.target = target,
.optimize = optimize,
});
lib_unit_tests.root_module.addImport("zap", zap.module("zap"));
lib_unit_tests.root_module.addImport("zouter", lib_mod);
const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests);
const test_step = b.step("test", "Run unit tests.");

View file

@ -1,10 +1,6 @@
const std = @import("std");
const zouter = @import("zouter");
test {
// try std.testing.refAllDecls(zouter);
}
comptime {
_ = @import("example.zig");
_ = @import("simple_routes.zig");