Add not passing integration test

This commit is contained in:
Denys Smirnov 2019-05-09 20:16:06 +03:00
parent 1f2ee8cb62
commit 7cf0d5d15e
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,4 @@
#[test]
fn not_passing() {
assert!(false);
}

View file

@ -76,6 +76,16 @@ fn run_single_test_failure() {
.code(1); .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] #[test]
fn run_single_test_no_filename() { fn run_single_test_no_filename() {
Command::cargo_bin("rustlings") Command::cargo_bin("rustlings")