From d9f21e0475075784793a9c5e812817531e4ba771 Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Sat, 3 May 2025 14:11:39 +0800 Subject: [PATCH] add empty cases to empty test suite (#594) --- src/main_wpt.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main_wpt.zig b/src/main_wpt.zig index 2f3e9324..c3dbd2f3 100644 --- a/src/main_wpt.zig +++ b/src/main_wpt.zig @@ -208,7 +208,7 @@ const Writer = struct { // to make it valid json. // Better option could be to change the formatter to work on JSONL: // https://github.com/lightpanda-io/perf-fmt/blob/main/wpt/wpt.go - try self.out.writeAll("{\"name\":\"trailing-hack\",\"pass\": true}]"); + try self.out.writeAll("{\"name\":\"empty\",\"pass\": true, \"cases\": []}]"); } else { try self.out.print("\n==Summary==\nTests: {d}/{d}\nCases: {d}/{d}\n", .{ self.pass_count,