diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-03 01:54:10 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-03 01:54:10 +0800 |
| commit | 82372181d3b819ce57b04207f42406c188e42ac9 (patch) | |
| tree | 2572eb710f0638ea2c7aef438449ade95ccbba8f /.run/src | |
| parent | d860a25ea43fc190c0463b8854492f8d6c630b48 (diff) | |
chore(ci): test arg-picker separately from workspace
`arg-picker` is excluded from the workspace test command and tested
on its own due to conflicting `mingling_support` feature doctests.
Also remove unused `mling/res` ignore directories.
Diffstat (limited to '.run/src')
| -rw-r--r-- | .run/src/bin/ci.rs | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/.run/src/bin/ci.rs b/.run/src/bin/ci.rs index d8941d4..39d55eb 100644 --- a/.run/src/bin/ci.rs +++ b/.run/src/bin/ci.rs @@ -8,11 +8,7 @@ use tools::{ }; fn get_ignore_dirs() -> Vec<String> { - vec![ - ".temp".to_string(), - "mling/res".to_string(), - "mling\\res".to_string(), - ] + vec![".temp".to_string()] } fn print_help() { @@ -123,6 +119,9 @@ fn ci(test_docs: bool, test_codes: bool, run_all: bool) -> Result<(), i32> { println_cargo_style!("Phase: Test all crates"); test_all()?; + + println_cargo_style!("Phase: Test arg picker"); + test_arg_picker()?; } if run_all || test_docs { @@ -282,11 +281,12 @@ fn test_all() -> Result<(), i32> { // Workspace members: test with all documented features so that feature-gated // tests (comp/repl/picker/structural_renderer/...) are actually executed. + // `arg-picker` is excluded here and tested separately via [`test_arg_picker`]. let features_arg = doc_features_arg(); tasks.push(( "Test: workspace".to_string(), "workspace".to_string(), - format!("cargo test --workspace{features_arg} --color always"), + format!("cargo test --workspace{features_arg} --exclude arg-picker --color always"), )); for cargo_toml in cargo_tomls { @@ -312,6 +312,15 @@ fn test_all() -> Result<(), i32> { run_parallel("Testing", tasks) } +/// `arg-picker` is excluded from the workspace test command: when built with +/// `mingling_support` (enabled via `mingling/picker`), its README doctests +/// expand `arg!` to `::mingling::picker::PickerArg`, which is not available +/// inside the arg-picker crate itself. Test it separately with its default +/// features instead. +fn test_arg_picker() -> Result<(), i32> { + run_cmd!("cargo test -p arg-picker --color always") +} + fn deploy_api_docs() -> Result<(), i32> { run_cmd!( "cargo run --manifest-path .run/Cargo.toml --color always --bin deploy-api-docs -- --docsrs" |
