Updates bats tests to cloe bats-support and bats-assert

This along with upgrading to 0.7.0 of bats seems to fix bats tests.

Fixes gh-150
This commit is contained in:
spencergibb
2020-05-08 12:23:05 -04:00
parent 76873a53ab
commit d673bca4da
4 changed files with 6 additions and 5 deletions

View File

@@ -209,7 +209,6 @@
</goals>
<configuration>
<skip>${skipTests}</skip>
<skip>true</skip>
<executable>${basedir}/src/test/bash/run-bats.sh</executable>
</configuration>
</execution>

View File

@@ -59,6 +59,8 @@ case $1 in
exit 0
fi
git clone https://github.com/bats-core/bats-core.git "${ROOT_DIR}/../target/bats"
git clone https://github.com/ztombol/bats-support.git "${ROOT_DIR}/target/test_helper/bats-support"
git clone https://github.com/ztombol/bats-assert "${ROOT_DIR}/target/test_helper/bats-assert"
;;
run-bats)
echo "Running bats"

View File

@@ -1,8 +1,8 @@
#!/usr/bin/env bats
load 'test_helper'
load 'test_helper/bats-support/load'
load 'test_helper/bats-assert/load'
load '../../../target/test_helper/bats-support/load'
load '../../../target/test_helper/bats-assert/load'
setup() {
export TEMP_DIR="$( mktemp -d )"

View File

@@ -1,8 +1,8 @@
#!/usr/bin/env bats
load 'test_helper'
load 'test_helper/bats-support/load'
load 'test_helper/bats-assert/load'
load '../../../target/test_helper/bats-support/load'
load '../../../target/test_helper/bats-assert/load'
setup() {
export TEMP_DIR="$( mktemp -d )"