From 85ff359afe594012a22fc3c9975db2dbc0dddaf8 Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Sat, 3 May 2025 14:00:52 +0800 Subject: [PATCH] add empty cases to empty test suite --- 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 2f3e93243..c3dbd2f34 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,