bats_load_library “library-name”
Instructs bats-core to load a library.
The directories, where bats-core libraries are searched, are defined by $BATS_LIB_PATH
.
BashSupport Pro bundles the following libraries and adds them at the end of $BATS_LIB_PATH
:
Usage
1st argument (required) | Library name or library file path to load |
Links
Examples
- Load the
bats-file
library: 1
bats_load_library "bats-file"
BashSupport Pro is a shell script IDE with support for bats-core’s bats_load_library – try it now!