mirror of
https://github.com/sstephenson/bats.git
synced 2026-02-25 17:28:11 +01:00
@@ -150,3 +150,10 @@ fixtures bats
|
||||
|
||||
[ "$tap_output" != "$pretty_output" ]
|
||||
}
|
||||
|
||||
@test "pretty formatter bails on invalid tap" {
|
||||
run bats --tap "$FIXTURE_ROOT/invalid_tap.bats"
|
||||
[ $status -eq 1 ]
|
||||
[ "${lines[0]}" = "This isn't TAP!" ]
|
||||
[ "${lines[1]}" = "Good day to you" ]
|
||||
}
|
||||
|
||||
7
test/fixtures/bats/invalid_tap.bats
vendored
Normal file
7
test/fixtures/bats/invalid_tap.bats
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
echo "This isn't TAP!"
|
||||
echo "Good day to you"
|
||||
exit 1
|
||||
|
||||
@test "truth" {
|
||||
true
|
||||
}
|
||||
Reference in New Issue
Block a user