1
0
mirror of https://github.com/sstephenson/bats.git synced 2024-12-27 23:19:44 +01:00
bats/test/fixtures/setup.bats

18 lines
247 B
Bash

LOG="$TMP/setup.log"
setup() {
echo "$BATS_TEST_NAME" >> "$LOG"
}
@test "one" {
[ "$(tail -n 1 "$LOG")" = "test_one" ]
}
@test "two" {
[ "$(tail -n 1 "$LOG")" = "test_two" ]
}
@test "three" {
[ "$(tail -n 1 "$LOG")" = "test_three" ]
}