$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 是一款shell 脚本集成开发环境,支持 bats-core 的 $BATS_TEST_NAME_PREFIX - 立即试用
© 2020–2024 Joachim Ansorg
声明
隐私政策
许可条款