Add not passing integration test (#154)

Add not passing integration test
This commit is contained in:
liv 2019-05-22 10:53:46 +02:00 committed by GitHub
commit 5a9f8860ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}
#[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")