$BATS_TEST_NAME
–
Function Name of Test
$BATS_TEST_NAME
is the name of the function containing the current test case.
Links
Examples
- Print name of current test function
1 2 3
@test "Example" { echo "Function name: $BATS_TEST_NAME" >&3 }
BashSupport Pro 是一款shell 脚本集成开发环境,支持 bats-core 的 $BATS_TEST_NAME - 立即试用!