Closed
Description
I created a request in bats-core to add homebrew support for their plugins using homebrew taps.
In the meantime,
https://github.com/bats-core/bats-assert
Refers to
https://github.com/ztombol/bats-docs
Which uses the homebrew tap from kaos
https://github.com/kaos/homebrew-shell
$ brew tap kaos/shell
$ brew install bats-assert
$ brew install bats-file
then in every test you have to load the files.
load '/opt/homebrew/lib/bats-support/load.bash'
load '/opt/homebrew/lib/bats-assert/load.bash'
@test 'refute_output()' {
run echo 'want'
refute_output 'want'
}
@test 'assert_equal()' {
assert_equal 'have' 'hav'
}
Metadata
Metadata
Assignees
Labels
No labels