2020-08-24 17:23:37 +00:00
|
|
|
#![cfg(not(tarpaulin))]
|
|
|
|
|
2020-08-23 16:49:05 +00:00
|
|
|
#[test]
|
2021-11-10 22:15:30 +00:00
|
|
|
fn example_tests() {
|
|
|
|
let t = trycmd::TestCases::new();
|
2021-11-23 21:59:56 +00:00
|
|
|
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 = "wrap_help")]
|
|
|
|
"wrap_help",
|
2021-12-09 03:06:51 +00:00
|
|
|
#[cfg(feature = "unstable-replace")]
|
|
|
|
"unstable-replace",
|
|
|
|
#[cfg(feature = "unstable-grouped")]
|
|
|
|
"unstable-grouped",
|
2021-11-23 21:59:56 +00:00
|
|
|
]
|
|
|
|
.join(" ");
|
|
|
|
t.register_bins(trycmd::cargo::compile_examples(["--features", &features]).unwrap());
|
2021-11-30 18:30:19 +00:00
|
|
|
t.case("examples/**/*.md");
|
2020-08-23 16:49:05 +00:00
|
|
|
}
|