Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,18 @@ pub fn build(b: *std.Build) void {
const run_http1_handler_tests = b.addRunArtifact(http1_handler_tests);
test_step.dependOn(&run_http1_handler_tests.step);

// Scenario Parser tests
const scenario_tests = b.addTest(.{
.root_module = b.createModule(.{
.root_source_file = b.path("tests/unit/scenario_test.zig"),
.target = target,
.optimize = optimize,
}),
});
scenario_tests.root_module.addImport("z6", z6_module);
const run_scenario_tests = b.addRunArtifact(scenario_tests);
test_step.dependOn(&run_scenario_tests.step);

// Integration tests
const integration_test_step = b.step("test-integration", "Run integration tests");

Expand Down Expand Up @@ -291,6 +303,38 @@ pub fn build(b: *std.Build) void {
tools_step.dependOn(&b.addInstallArtifact(check_assertions, .{}).step);
tools_step.dependOn(&b.addInstallArtifact(check_bounded_loops, .{}).step);

// Real scenario integration example
const real_scenario_test = b.addExecutable(.{
.name = "real_scenario_test",
.root_module = b.createModule(.{
.root_source_file = b.path("examples/real_scenario_test.zig"),
.target = target,
.optimize = optimize,
}),
});
real_scenario_test.root_module.addImport("z6", z6_module);
b.installArtifact(real_scenario_test);

const run_real_scenario_test = b.addRunArtifact(real_scenario_test);
const real_scenario_step = b.step("run-real-scenario", "Run real scenario file integration (Level 5)");
real_scenario_step.dependOn(&run_real_scenario_test.step);

// HTTP integration test (real network requests)
const http_integration_test = b.addExecutable(.{
.name = "http_integration_test",
.root_module = b.createModule(.{
.root_source_file = b.path("examples/http_integration_test.zig"),
.target = target,
.optimize = optimize,
}),
});
http_integration_test.root_module.addImport("z6", z6_module);
b.installArtifact(http_integration_test);

const run_http_integration_test = b.addRunArtifact(http_integration_test);
const http_integration_step = b.step("run-http-test", "Run real HTTP integration test (Level 6)");
http_integration_step.dependOn(&run_http_integration_test.step);

// Test checker tools
const check_assertions_tests = b.addTest(.{
.root_module = b.createModule(.{
Expand Down
Loading
Loading