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:
@@ -209,7 +209,6 @@
|
||||
</goals>
|
||||
<configuration>
|
||||
<skip>${skipTests}</skip>
|
||||
<skip>true</skip>
|
||||
<executable>${basedir}/src/test/bash/run-bats.sh</executable>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 )"
|
||||
|
||||
@@ -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 )"
|
||||
|
||||
Reference in New Issue
Block a user