https://github.com/bats-core/homebrew-bats-core
https://github.com/bats-core/homebrew-bats-core
homebrew
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bats-core/homebrew-bats-core
- Owner: bats-core
- Created: 2021-08-29T19:50:37.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-08T12:39:29.000Z (3 months ago)
- Last Synced: 2025-04-18T16:29:56.154Z (3 months ago)
- Topics: homebrew
- Language: Ruby
- Size: 72.3 KB
- Stars: 3
- Watchers: 6
- Forks: 4
- Open Issues: 5
-
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"
```