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 是一款shell 脚本集成开发环境,支持 bats-core 的 bats_load_library - 立即试用!