diff --git a/tests/fixture/failure/testNotPassed.rs b/tests/fixture/failure/testNotPassed.rs new file mode 100644 index 0000000..a9fe88d --- /dev/null +++ b/tests/fixture/failure/testNotPassed.rs @@ -0,0 +1,4 @@ +#[test] +fn not_passing() { + assert!(false); +} diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index a077918..3acaf90 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -76,6 +76,16 @@ fn run_single_test_failure() { .code(1); } +#[test] +fn run_single_test_not_passed() { + Command::cargo_bin("rustlings") + .unwrap() + .args(&["r", "testNotPassed.rs"]) + .current_dir("tests/fixture/failure/") + .assert() + .code(1); +} + #[test] fn run_single_test_no_filename() { Command::cargo_bin("rustlings")