zig/test/standalone/issue_794/build.zig

14 lines
343 B
Zig
Raw Normal View History

const std = @import("std");
pub fn build(b: *std.Build) void {
const test_step = b.step("test", "Test it");
b.default_step = test_step;
2023-01-31 04:39:43 +00:00
const test_artifact = b.addTest(.{
.root_source_file = .{ .path = "main.zig" },
});
test_artifact.addIncludePath("a_directory");
test_step.dependOn(&test_artifact.step);
}