$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.
Links
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 是一款shell 脚本集成开发环境,支持 bats-core 的 $BATS_TEST_NAME_PREFIX - 立即试用!