build: rename test executable

This commit is contained in:
CJ van den Berg 2026-03-09 12:15:52 +01:00
parent 2aa3c1afc7
commit 5b2962fdc0
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -65,12 +65,8 @@ pub fn build(b: *std.Build) void {
}, },
}); });
// Integration test suite: exercises the public API by performing real const tests = b.addTest(.{
// filesystem operations and verifying Handler callbacks via TestHandler. .name = "tests",
// Also imports nightwatch.zig (via the nightwatch module) and main.zig so
// any tests added there are included automatically.
const integration_tests = b.addTest(.{
.name = "integration_tests",
.root_module = b.createModule(.{ .root_module = b.createModule(.{
.root_source_file = b.path("src/nightwatch_test.zig"), .root_source_file = b.path("src/nightwatch_test.zig"),
.target = target, .target = target,
@ -81,10 +77,10 @@ pub fn build(b: *std.Build) void {
}, },
}), }),
}); });
const run_integration_tests = b.addRunArtifact(integration_tests); const run_tests = b.addRunArtifact(tests);
const test_step = b.step("test", "Run tests"); const test_step = b.step("test", "Run tests");
test_step.dependOn(&run_integration_tests.step); test_step.dependOn(&run_tests.step);
b.installArtifact(integration_tests); b.installArtifact(tests);
} }