mirror of
https://github.com/sstephenson/bats.git
synced 2026-02-25 09:18:10 +01:00
Print the failing status code, if it's significant
This commit is contained in:
2
test/fixtures/bats/failing.bats
vendored
2
test/fixtures/bats/failing.bats
vendored
@@ -1,5 +1,5 @@
|
||||
@test "a failing test" {
|
||||
true
|
||||
true
|
||||
false
|
||||
eval "( exit ${STATUS:-1} )"
|
||||
}
|
||||
|
||||
2
test/fixtures/bats/failing_teardown.bats
vendored
2
test/fixtures/bats/failing_teardown.bats
vendored
@@ -1,5 +1,5 @@
|
||||
teardown() {
|
||||
false
|
||||
eval "( exit ${STATUS:-1} )"
|
||||
}
|
||||
|
||||
@test "truth" {
|
||||
|
||||
Reference in New Issue
Block a user