mirror of
https://github.com/sstephenson/bats.git
synced 2026-04-23 16:47:24 +02:00
Test that setup runs once before each test
This commit is contained in:
17
test/fixtures/setup.bats
vendored
Normal file
17
test/fixtures/setup.bats
vendored
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user