Last active
January 18, 2026 18:12
-
-
Save ninjapanzer/b6e8293f4041ba08cba5649b578cfbad to your computer and use it in GitHub Desktop.
Bats
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -e | |
| if [ -d "./.test/bats" ]; then | |
| echo "Deleting folder $FOLDER" | |
| rm -rf "./.test/bats/" | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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