Skip to content

Commit 7cf0d5d

Browse files
committed
Add not passing integration test
1 parent 1f2ee8c commit 7cf0d5d

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#[test]
2+
fn not_passing() {
3+
assert!(false);
4+
}

tests/integration_tests.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,16 @@ fn run_single_test_failure() {
7676
.code(1);
7777
}
7878

79+
#[test]
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+
7989
#[test]
8090
fn run_single_test_no_filename() {
8191
Command::cargo_bin("rustlings")

0 commit comments

Comments
 (0)