We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent addb49c commit 15c9761Copy full SHA for 15c9761
tests/data/script-test-extra-args.rs
@@ -1,4 +1,6 @@
1
fn main() {}
2
3
#[test]
4
-fn test() { println!("Hello, world!"); }
+fn test() {
5
+ println!("Hello, world!");
6
+}
tests/tests/script.rs
@@ -94,7 +94,14 @@ fn test_script_test() {
94
95
96
fn test_script_test_extra_args_for_cargo() {
97
- let out = rust_script!("--test", "tests/data/script-test-extra-args.rs", "--help").unwrap();
+ let out = rust_script!(
98
+ "--test",
99
+ "tests/data/script-test-extra-args.rs",
100
+ "--help",
101
+ "--color",
102
+ "never"
103
+ )
104
+ .unwrap();
105
assert!(out.success());
106
assert!(out.stdout.contains("Usage: cargo test "));
107
}
0 commit comments