$BATS_RUN_COMMAND
: Last Used run
Command
$BATS_RUN_COMMAND
is the last executed run
command used in your test case.
Links
Examples
- Print last run command
1 2 3 4
@test "Example" { run test echo "Last run command: $BATS_RUN_COMMAND" >&3 }
BashSupport Pro 是一个 支持 $BATS_RUN_COMMAND 的 Bash 集成开发工具 – 马上试用!