https://github.com/bats-core/homebrew-bats-core
https://github.com/bats-core/homebrew-bats-core
homebrew
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bats-core/homebrew-bats-core
- Owner: bats-core
- Created: 2021-08-29T19:50:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-26T22:52:09.000Z (about 1 month ago)
- Last Synced: 2025-03-26T23:29:45.608Z (30 days ago)
- Topics: homebrew
- Language: Ruby
- Size: 62.5 KB
- Stars: 3
- Watchers: 6
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# homebrew-bats-core
Repository for managing bats-core and its dependencies on homebrew
## Installation
OS X users can use Homebrew to install libraries system-wide
```
$ brew install bats-core
```
Then install the desired libraries.
```
$ brew tap bats-core/bats-core
$ brew install bats-support
$ brew install bats-assert
$ brew install bats-file
$ brew install bats-detik
```For brew installations, load the libraries from $(brew --prefix)/lib/ (the brew prefix is /usr/local by default):
```bash
TEST_BREW_PREFIX="$(brew --prefix)"
load "${TEST_BREW_PREFIX}/lib/bats-support/load.bash"
load "${TEST_BREW_PREFIX}/lib/bats-assert/load.bash"
load "${TEST_BREW_PREFIX}/lib/bats-file/load.bash"
load "${TEST_BREW_PREFIX}/lib/bats-detik/load.bash"
```