Fix tests that were not running.
This commit is contained in:
parent
cd90a76408
commit
6b0d21da60
2 changed files with 3 additions and 5 deletions
|
@ -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.");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue