From 7cf0d5d15e02ccd52e6d8dd53dcd6f0d7adf888f Mon Sep 17 00:00:00 2001 From: Denys Smirnov Date: Thu, 9 May 2019 20:16:06 +0300 Subject: Add not passing integration test --- tests/integration_tests.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/integration_tests.rs') 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") -- cgit v1.2.3