Add helper modules for bats
According to these instructions: https://bats-core.readthedocs.io/en/stable/tutorial.html#quick-installation
This commit is contained in:
parent
653a1b67bc
commit
e48e27fb52
7 changed files with 25 additions and 3 deletions
|
|
@ -1,10 +1,14 @@
|
|||
#!/usr/bin/env bats
|
||||
|
||||
setup() {
|
||||
load 'test_helper/bats-support/load'
|
||||
load 'test_helper/bats-assert/load'
|
||||
|
||||
DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )"
|
||||
PATH="$DIR/../bin:$PATH"
|
||||
}
|
||||
|
||||
@test "can run" {
|
||||
git-check-assertions
|
||||
run git-check-assertions
|
||||
assert_success
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue