#zig buil test

1 messages · Page 1 of 1 (latest)

somber snow
#
 const internal_test = b.addTest(.{
        .root_source_file = std.build.FileSource{ .path = "src/tests.zig" },
        .optimize = optimize,
        .target = target,
        .name = "internal_tests",
    });
        const test_step = b.step("test", "Run unit tests");
    const run_unit_tests = b.addRunArtifact(internal_test);
    test_step.dependOn(&run_unit_tests.step);

I created and step to run my specs, but it did not show the test results(passed/fail), only if one test fails.

Does anyone know how to make the command zig build test shows the result of the tests.

primal fulcrum
#

zig build test --summary all