$BATS_RUN_TMPDIR  –  Path to Directory For Temporary bats Files

$BATS_RUN_TMPDIR is the path to a directory, where bats stores its own temporary files.

Examples

Print directory
1
2
3
@test "Example" {
  echo "$BATS_RUN_TMPDIR" >&3
}
BashSupport Pro is a shell script IDE with support for bats-core’s $BATS_RUN_TMPDIRtry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal