Skip to content

Instantly share code, notes, and snippets.

@ninjapanzer
Last active January 18, 2026 18:12
Show Gist options
  • Select an option

  • Save ninjapanzer/b6e8293f4041ba08cba5649b578cfbad to your computer and use it in GitHub Desktop.

Select an option

Save ninjapanzer/b6e8293f4041ba08cba5649b578cfbad to your computer and use it in GitHub Desktop.
Bats
#!/bin/bash -e
if [ -d "./.test/bats" ]; then
echo "Deleting folder $FOLDER"
rm -rf "./.test/bats/"
fi
#!/bin/bash -e
if [ -d "./.test/bats" ]; then
echo "Deleting folder $FOLDER"
rm -rf "./.test/bats/"
mkdir -p ./.test/bats
else
mkdir -p ./.test/bats
fi
git clone --depth 1 https://github.com/bats-core/bats-core ./.test/bats/bats
rm -rf ./.test/bats/bats/.git
git clone --depth 1 https://github.com/ztombol/bats-support ./.test/bats/bats-support
rm -rf ./.test/bats/bats-support/.git
git clone --depth 1 https://github.com/ztombol/bats-assert ./.test/bats/bats-assert
rm -rf ./.test/bats/bats-assert/.git
git clone --depth 1 https://github.com/jasonkarns/bats-mock.git ./.test/bats/bats-mock
rm -rf ./.test/bats/bats-mock/.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment