• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #![cfg(not(tarpaulin))]
2 
3 #[test]
4 #[cfg(feature = "help")]
5 #[cfg(feature = "error-context")]
6 #[cfg(feature = "usage")]
ui_tests()7 fn ui_tests() {
8     let t = trycmd::TestCases::new();
9     let features = [
10         #[cfg(feature = "std")]
11         "std",
12         #[cfg(feature = "derive")]
13         "derive",
14         #[cfg(feature = "cargo")]
15         "cargo",
16         #[cfg(feature = "color")]
17         "color",
18         #[cfg(feature = "env")]
19         "env",
20         #[cfg(feature = "suggestions")]
21         "suggestions",
22         #[cfg(feature = "unicode")]
23         "unicode",
24         #[cfg(feature = "string")]
25         "string",
26         #[cfg(feature = "wrap_help")]
27         "wrap_help",
28         #[cfg(feature = "unstable-replace")]
29         "unstable-replace",
30     ]
31     .join(" ");
32     t.register_bins(trycmd::cargo::compile_examples(["--features", &features]).unwrap());
33     t.case("tests/ui/*.toml");
34 }
35