# testing `zig build test` compiles tests but may not run them if your build.zig doesn't wire it up correctly. to actually run tests: ```bash zig test src/foo.zig # runs tests in foo.zig and its imports zig test src/foo.zig --test-filter "parse" # only tests matching "parse" ``` the testing allocator catches leaks. if you use `parseFromValueLeaky` or similar "leaky" apis, wrap in an arena: ```zig var arena = std.heap.ArenaAllocator.init(std.testing.allocator); defer arena.deinit(); const result = try leakyFunction(arena.allocator(), input); ```