ReviewOS

also looking at this

zig-utils/zig-test-framework

Add reproducible randomized test order

#29
Merged glennmichael123 wants to merge codex/issue-14-random-order into main
18 files +487 -42
src/event_protocol.zigmodified+5-1
Changes to src/event_protocol.zig
@@ -7,7 +7,10 @@ pub const Status = enum { pending, running, passed, flaky, failed, skipped };
77pub const HookKind = enum { before_all, before_each, after_each, after_all };
88pub const OutputStream = enum { stdout, stderr };
99
10pub const RunStart = struct { total: usize };
10pub const RunStart = struct {
11 total: usize,
12 random_seed: ?u64 = null,
13};
1114pub const RunEnd = struct {
1215 total: usize,
1316 passed: usize,
@@ -15,6 +18,7 @@ pub const RunEnd = struct {
1518 failed: usize,
1619 skipped: usize,
1720 duration_ns: u64 = 0,
21 random_seed: ?u64 = null,
1822};
1923pub const Suite = struct { name: []const u8 };
2024pub const TestStart = struct { name: []const u8, suite: ?[]const u8 = null };