ReviewOS

also looking at this

zig-utils/zig-test-framework

Make watch mode rerun affected tests

#28
Merged glennmichael123 wants to merge codex/issue-11-watch-affected into main
5 files +621 -105
src/main.zigmodified+2-0
Changes to src/main.zig
@@ -154,11 +154,13 @@ pub fn main(init: std.process.Init.Minimal) !void {
154154
155155 const watch_options = lib.WatchOptions{
156156 .watch_dir = test_dir,
157 .project_root = ".",
157158 .pattern = cli_parser.options.pattern,
158159 .recursive = !cli_parser.options.no_recursive,
159160 .debounce_ms = cli_parser.options.watch_debounce,
160161 .clear_screen = true,
161162 .verbose = cli_parser.options.verbose,
163 .interactive_commands = true,
162164 };
163165
164166 var watcher = lib.TestWatcher.init(allocator, watch_options, &keep_running);