diff options
Diffstat (limited to 'src/cli.zig')
-rw-r--r-- | src/cli.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cli.zig b/src/cli.zig index dc1ae0cdc..0d4c32cdf 100644 --- a/src/cli.zig +++ b/src/cli.zig @@ -215,6 +215,8 @@ pub const Arguments = struct { clap.parseParam("--timeout <NUMBER> Set the per-test timeout in milliseconds, default is 5000.") catch unreachable, clap.parseParam("--update-snapshots Update snapshot files") catch unreachable, clap.parseParam("--rerun-each <NUMBER> Re-run each test file <NUMBER> times, helps catch certain bugs") catch unreachable, + clap.parseParam("--only Only run tests that are marked with \"test.only()\"") catch unreachable, + clap.parseParam("--todo Include tests that are marked with \"test.todo()\"") catch unreachable, }; const build_params_public = public_params ++ build_only_params; @@ -390,6 +392,8 @@ pub const Arguments = struct { }; } } + ctx.test_options.run_todo = args.flag("--todo"); + ctx.test_options.only = args.flag("--only"); } ctx.args.absolute_working_dir = cwd; @@ -923,6 +927,8 @@ pub const Command = struct { default_timeout_ms: u32 = 5 * std.time.ms_per_s, update_snapshots: bool = false, repeat_count: u32 = 0, + run_todo: bool = false, + only: bool = false, }; pub const Context = struct { |