mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-08-28 05:27:41 +00:00
Split the single cli_tests trycmd function into 14 per-subcommand test functions so nextest can parallelize them. Delete header.toml and verbose.toml doctor fixtures that ran live network probes — the existing dry-run-flag.toml and help.trycmd already cover the same output assertion. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
25 lines
846 B
Rust
25 lines
846 B
Rust
macro_rules! trycmd_subcommand {
|
|
($name:ident, $dir:expr) => {
|
|
#[test]
|
|
fn $name() {
|
|
trycmd::TestCases::new()
|
|
.case(concat!("tests/cmd/", $dir, "/*.trycmd"))
|
|
.case(concat!("tests/cmd/", $dir, "/*.toml"));
|
|
}
|
|
};
|
|
}
|
|
|
|
trycmd_subcommand!(cli_cp, "cp");
|
|
trycmd_subcommand!(cli_doctor, "doctor");
|
|
trycmd_subcommand!(cli_exec, "exec");
|
|
trycmd_subcommand!(cli_init, "init");
|
|
trycmd_subcommand!(cli_install, "install");
|
|
trycmd_subcommand!(cli_llm, "llm");
|
|
trycmd_subcommand!(cli_model, "model");
|
|
trycmd_subcommand!(cli_pr, "pr");
|
|
trycmd_subcommand!(cli_preview, "preview");
|
|
trycmd_subcommand!(cli_run, "run");
|
|
trycmd_subcommand!(cli_ssh, "ssh");
|
|
trycmd_subcommand!(cli_system, "system");
|
|
trycmd_subcommand!(cli_top_level, "top-level");
|
|
trycmd_subcommand!(cli_validate, "validate");
|