ReviewOS

also looking at this

zig-utils/zig-test-framework

Implement the web UI server with Zig I/O

#26
Merged glennmichael123 wants to merge codex/issue-9-ui-server into main
8 files +513 -114
src/cli.zigmodified+7-1
Changes to src/cli.zig
@@ -367,7 +367,6 @@ pub const CLI = struct {
367367 if (self.options.profile_memory) return "--profile-memory";
368368 if (self.options.memory_threshold != 0) return "--memory-threshold";
369369 if (self.options.fail_on_leak) return "--fail-on-leak";
370 if (self.options.ui) return "--ui";
371370 return null;
372371 }
373372
@@ -767,6 +766,13 @@ test "discovery accepts reporter selection" {
767766 try std.testing.expectEqual(@as(?[]const u8, null), cli.unsupportedDiscoveryOption());
768767}
769768
769test "discovery accepts the live UI" {
770 var cli = CLI.init(std.testing.allocator);
771 const args = [_][]const u8{ "zig-test", "--test-dir", "tests", "--ui", "--ui-port", "0" };
772 try cli.parse(&args);
773 try std.testing.expectEqual(@as(?[]const u8, null), cli.unsupportedDiscoveryOption());
774}
775
770776test "discovery accepts timeout and reports parallel as unsupported" {
771777 var cli = CLI.init(std.testing.allocator);
772778