refactor: add integration test suite

This commit is contained in:
CJ van den Berg 2026-02-26 12:46:15 +01:00
parent 6cbf389d81
commit 4aae8f8b3e
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 552 additions and 0 deletions

View file

@ -40,7 +40,19 @@ pub fn build(b: *std.Build) void {
});
const run_exe_tests = b.addRunArtifact(exe_tests);
// Integration test suite: exercises the public API by performing real
// filesystem operations and verifying Handler callbacks via TestHandler.
const integration_tests = b.addTest(.{
.root_module = b.createModule(.{
.root_source_file = b.path("src/nightwatch_test.zig"),
.target = target,
.optimize = optimize,
}),
});
const run_integration_tests = b.addRunArtifact(integration_tests);
const test_step = b.step("test", "Run tests");
test_step.dependOn(&run_mod_tests.step);
test_step.dependOn(&run_exe_tests.step);
test_step.dependOn(&run_integration_tests.step);
}