also looking at this
Implement the web UI server with Zig I/O
#26
8 files
+513
-114
| @@ -367,7 +367,6 @@ pub const CLI = struct { | ||
| 367 | 367 | if (self.options.profile_memory) return "--profile-memory"; |
| 368 | 368 | if (self.options.memory_threshold != 0) return "--memory-threshold"; |
| 369 | 369 | if (self.options.fail_on_leak) return "--fail-on-leak"; |
| 370 | if (self.options.ui) return "--ui"; | |
| 371 | 370 | return null; |
| 372 | 371 | } |
| 373 | 372 | |
| @@ -767,6 +766,13 @@ test "discovery accepts reporter selection" { | ||
| 767 | 766 | try std.testing.expectEqual(@as(?[]const u8, null), cli.unsupportedDiscoveryOption()); |
| 768 | 767 | } |
| 769 | 768 | |
| 769 | test "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 | ||
| 770 | 776 | test "discovery accepts timeout and reports parallel as unsupported" { |
| 771 | 777 | var cli = CLI.init(std.testing.allocator); |
| 772 | 778 | |