Skip to content

Instantly share code, notes, and snippets.

@natbusa
Forked from pimterry/install-bats-libs.sh
Last active March 18, 2021 17:13
Show Gist options
  • Save natbusa/1e4fc7c0b089f74560a6003dcd60dd9b to your computer and use it in GitHub Desktop.
Save natbusa/1e4fc7c0b089f74560a6003dcd60dd9b to your computer and use it in GitHub Desktop.
Set up bats libraries for testing as git submodules in test/libs
mkdir -p tests/libs
cd tests/libs
git submodule add git@github.com:bats-core/bats-core bats
git submodule add git@github.com:bats-core/bats-support bats-support
git submodule add git@github.com:bats-core/bats-assert bats-assert
# try the following three steps
git submodule update --init --recursive
git submodule update --recursive --remote
git pull --recurse-submodules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment