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.
2 parents 5423bc6 + 7cf0d5d commit 5a9f886Copy full SHA for 5a9f886
tests/fixture/failure/testNotPassed.rs
@@ -0,0 +1,4 @@
1
+#[test]
2
+fn not_passing() {
3
+ assert!(false);
4
+}
tests/integration_tests.rs
@@ -76,6 +76,16 @@ fn run_single_test_failure() {
76
.code(1);
77
}
78
79
80
+fn run_single_test_not_passed() {
81
+ Command::cargo_bin("rustlings")
82
+ .unwrap()
83
+ .args(&["r", "testNotPassed.rs"])
84
+ .current_dir("tests/fixture/failure/")
85
+ .assert()
86
+ .code(1);
87
88
+
89
#[test]
90
fn run_single_test_no_filename() {
91
Command::cargo_bin("rustlings")
0 commit comments