mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
36 lines
963 B
Rust
36 lines
963 B
Rust
#![cfg(not(tarpaulin))]
|
|
|
|
#[test]
|
|
#[cfg(feature = "help")]
|
|
#[cfg(feature = "error-context")]
|
|
#[cfg(feature = "usage")]
|
|
fn ui_tests() {
|
|
let t = trycmd::TestCases::new();
|
|
let features = [
|
|
#[cfg(feature = "std")]
|
|
"std",
|
|
#[cfg(feature = "derive")]
|
|
"derive",
|
|
#[cfg(feature = "cargo")]
|
|
"cargo",
|
|
#[cfg(feature = "color")]
|
|
"color",
|
|
#[cfg(feature = "env")]
|
|
"env",
|
|
#[cfg(feature = "suggestions")]
|
|
"suggestions",
|
|
#[cfg(feature = "unicode")]
|
|
"unicode",
|
|
#[cfg(feature = "string")]
|
|
"string",
|
|
#[cfg(feature = "wrap_help")]
|
|
"wrap_help",
|
|
#[cfg(feature = "unstable-replace")]
|
|
"unstable-replace",
|
|
#[cfg(feature = "unstable-grouped")]
|
|
"unstable-grouped",
|
|
]
|
|
.join(" ");
|
|
t.register_bins(trycmd::cargo::compile_examples(["--features", &features]).unwrap());
|
|
t.case("tests/ui/*.toml");
|
|
}
|