mirror of
https://github.com/sstephenson/bats.git
synced 2024-12-27 23:19:44 +01:00
3be82466a7
This also update the behaviour of the summary, now it only display the number of failures, and skipped tests also, if the numbers are greater than zero.
17 lines
304 B
Bash
17 lines
304 B
Bash
fixtures() {
|
|
FIXTURE_ROOT="$BATS_TEST_DIRNAME/fixtures/$1"
|
|
RELATIVE_FIXTURE_ROOT="$(bats_trim_filename "$FIXTURE_ROOT")"
|
|
}
|
|
|
|
setup() {
|
|
export TMP="$BATS_TEST_DIRNAME/tmp"
|
|
}
|
|
|
|
filter_control_sequences() {
|
|
"$@" | sed $'s,\x1b\\[[0-9;]*[a-zA-Z],,g'
|
|
}
|
|
|
|
teardown() {
|
|
[ -d "$TMP" ] && rm -f "$TMP"/*
|
|
}
|