mirror of
https://github.com/sstephenson/bats.git
synced 2024-11-17 11:42:33 +01:00
18 lines
247 B
Bash
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" ]
|
|
}
|