Commit 3750464
Eric Bower
·
2026-04-21 16:47:03 -0400 EDT
parent c6f3ccb
feat: zig build test-integration
1 files changed,
+8,
-0
+8,
-0
| ... | ... | @@ -85,6 +85,14 @@ pub fn build(b: *std.Build) void { | |
| 85 | 85 | test_step.dependOn(&run_exe_unit_tests.step); | |
| 86 | 86 | } | |
| 87 | 87 | ||
| 88 | + | // Integration tests (bats) | |
| 89 | + | { | |
| 90 | + | const integration_step = b.step("test-integration", "Run bats integration tests"); | |
| 91 | + | const bats = b.addSystemCommand(&.{ "bats", "test/session.bats" }); | |
| 92 | + | bats.step.dependOn(b.getInstallStep()); | |
| 93 | + | integration_step.dependOn(&bats.step); | |
| 94 | + | } | |
| 95 | + | ||
| 88 | 96 | // Check for LSP integration | |
| 89 | 97 | { | |
| 90 | 98 | const check = b.step("check", "Check if zmx compiles"); |