ReviewOS

also looking at this

zig-utils/zig-test-framework

Add retries, repeated runs, and flaky-test reporting

#25
Merged glennmichael123 wants to merge codex/issue-7-retries-repeat-flaky into main
15 files +719 -53
src/main.zigmodified+6-0
Changes to src/main.zig
@@ -221,6 +221,9 @@ pub fn main(init: std.process.Init.Minimal) !void {
221221 .reporter_type = cli_parser.options.reporter,
222222 .junit_output = cli_parser.options.junit_output orelse "test-results.xml",
223223 .timeout_ms = cli_parser.options.timeout,
224 .retries = cli_parser.options.retries,
225 .repeat = cli_parser.options.repeat,
226 .fail_on_flaky = cli_parser.options.fail_on_flaky,
224227 .reporter_writer = &stdout_writer.interface,
225228 .coverage_options = cov_opts,
226229 .ui_server = if (ui_server) |*server| server else null,
@@ -264,6 +267,9 @@ pub fn main(init: std.process.Init.Minimal) !void {
264267 .reporter_type = cli_parser.options.reporter,
265268 .junit_output = cli_parser.options.junit_output orelse "test-results.xml",
266269 .timeout_ms = cli_parser.options.timeout,
270 .retries = cli_parser.options.retries,
271 .repeat = cli_parser.options.repeat,
272 .fail_on_flaky = cli_parser.options.fail_on_flaky,
267273 .reporter_writer = &stdout_writer.interface,
268274 .coverage_options = cov_opts,
269275 .ui_server = if (ui_server) |*server| server else null,