master
 1const std = @import("std");
 2
 3pub fn build(b: *std.Build) void {
 4    const test_step = b.step("test", "Test it");
 5    b.default_step = test_step;
 6
 7    const test_artifact = b.addTest(.{ .root_module = b.createModule(.{
 8        .root_source_file = b.path("main.zig"),
 9        .target = b.graph.host,
10    }) });
11    test_artifact.root_module.addIncludePath(b.path("a_directory"));
12
13    // TODO: actually check the output
14    _ = test_artifact.getEmittedBin();
15
16    test_step.dependOn(&test_artifact.step);
17}