Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_helper.bash: Use bats_load_library to load bats-support #48

Merged
merged 6 commits into from
Jan 8, 2023

Conversation

gioele
Copy link

@gioele gioele commented Oct 19, 2022

Similarly to bats-core/bats-assert#49, instead of assuming that bats-support is in an adjacent directory, use the bats_load_library command to load it.

bats_load_library is available since Bats v1.6.

Tested by running bats test on a Debian system with the bats-support package installed (all tests load fine but some fail due an unrelated issue).

@martin-schulze-vireso martin-schulze-vireso force-pushed the load-sys-lib-support branch 4 times, most recently from 90e7ab7 to 6da6536 Compare January 8, 2023 21:40
@martin-schulze-vireso martin-schulze-vireso merged commit e093d65 into bats-core:master Jan 8, 2023
@gioele gioele deleted the load-sys-lib-support branch January 8, 2023 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants