$BATS_TEST_NAME_PREFIX: Prefix for each test description

$BATS_TEST_NAME_PREFIX will be prepended to the description of each test on stdout and in reports.

Examples

Add prefix ‘LIBRARY: ’ to both test functions
1
2
3
4
5
6
7
8
9
BATS_TEST_NAME_PREFIX="LIBRARY: "
  
@test "first test" {
    echo ok >&3
}
  
@test "second test" {
    echo ok >&3
}
BashSupport Pro is a Bash IDE with support for $BATS_TEST_NAME_PREFIXtry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal