Skip to content

Commit cf7ca2c

Browse files
committed
Add load.bash helper for standardized includes
This makes it easier to include the library with bats_load_library: > bats_load_library has two modes of resolving requests: > by relative path from the BATS_LIB_PATH to a file in the library > by library name, expecting libraries to have a load.bash entrypoint https://bats-core.readthedocs.io/en/stable/writing-tests.html#bats-load-library-load-system-wide-libraries Signed-off-by: Jack Henschel <[email protected]>
1 parent d11069b commit cf7ca2c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

load.bash

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "$(dirname "${BASH_SOURCE[0]}")/lib/utils.bash"
2+
source "$(dirname "${BASH_SOURCE[0]}")/lib/detik.bash"
3+
source "$(dirname "${BASH_SOURCE[0]}")/lib/linter.bash"

0 commit comments

Comments
 (0)