1
0
mirror of https://github.com/sstephenson/bats.git synced 2026-02-25 09:18:10 +01:00

Correctly log errors in setup and teardown functions

Fixes #30
This commit is contained in:
Sam Stephenson
2013-11-04 12:20:55 -06:00
parent bfa4ebcd0f
commit c8d63dd7e0
4 changed files with 62 additions and 13 deletions

7
test/fixtures/bats/failing_setup.bats vendored Normal file
View File

@@ -0,0 +1,7 @@
setup() {
false
}
@test "truth" {
true
}

View File

@@ -0,0 +1,7 @@
teardown() {
false
}
@test "truth" {
[ "$PASS" = "1" ]
}