also looking at this
Add retries, repeated runs, and flaky-test reporting
#25
15 files
+719
-53
| @@ -293,6 +293,21 @@ pub fn build(b: *std.Build) void { | ||
| 293 | 293 | ); |
| 294 | 294 | test_step.dependOn(&run_discovery_tap.step); |
| 295 | 295 | |
| 296 | const run_discovery_repeat = b.addRunArtifact(exe); | |
| 297 | run_discovery_repeat.addArgs(&.{ | |
| 298 | "--test-dir", | |
| 299 | "tests", | |
| 300 | "--pattern", | |
| 301 | "sample.test.zig", | |
| 302 | "--retry", | |
| 303 | "1", | |
| 304 | "--repeat", | |
| 305 | "2", | |
| 306 | "--fail-on-flaky", | |
| 307 | "--no-color", | |
| 308 | }); | |
| 309 | test_step.dependOn(&run_discovery_repeat.step); | |
| 310 | ||
| 296 | 311 | const run_version = b.addRunArtifact(exe); |
| 297 | 312 | run_version.addArg("--version"); |
| 298 | 313 | run_version.expectStdErrEqual(b.fmt("Zig Test Framework v{s}\n", .{package_version})); |