$BATS_RUN_COMMAND  –  Last Used run Command

$BATS_RUN_COMMAND is the last executed run command used in your test case.

Examples

Print last run command
1
2
3
4
@test "Example" {
  run test
  echo "Last run command: $BATS_RUN_COMMAND" >&3
}
BashSupport Pro 是一款shell 脚本集成开发环境,支持 bats-core 的 $BATS_RUN_COMMAND - 立即试用
© 2020–2024 Joachim Ansorg
声明
隐私政策
许可条款