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

Test that setup runs once before each test

This commit is contained in:
Sam Stephenson
2011-12-28 20:46:24 -06:00
parent 098d993eb4
commit aecc6b55dc
3 changed files with 31 additions and 0 deletions

17
test/fixtures/setup.bats vendored Normal file
View File

@@ -0,0 +1,17 @@
TMP="$BATS_TEST_DIRNAME/../tmp"
setup() {
echo "$BATS_TEST_NAME" >> "$TMP/setup.log"
}
@test "one" {
true
}
@test "two" {
true
}
@test "three" {
true
}