Skip to content

Instantly share code, notes, and snippets.

View felipeasimos's full-sized avatar
:shipit:
"LGTM" - narcissus commented before approving his own PR in his private repo

Felipe Simões felipeasimos

:shipit:
"LGTM" - narcissus commented before approving his own PR in his private repo
  • Moca Tecnologia
  • 10:14 (UTC -03:00)
View GitHub Profile
@karlseguin
karlseguin / test_runner.zig
Last active June 17, 2025 04:06
Custom Zig Test Runner, better ouput, timing display, and support for special "tests:beforeAll" and "tests:afterAll" tests
// Changed Jan 29, 2025 to accomodate latest Zig changes
// See history if you're using an older version of Zig.
// in your build.zig, you can specify a custom test runner:
// const tests = b.addTest(.{
// .target = target,
// .optimize = optimize,
// .test_runner = .{ .path = b.path("test_runner.zig"), .mode = .simple }, // add this line
// .root_source_file = b.path("src/main.zig"),
// });