From d673bca4da923950a532f9b85b4b94897e01dad7 Mon Sep 17 00:00:00 2001 From: spencergibb Date: Fri, 8 May 2020 12:23:05 -0400 Subject: [PATCH] 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 --- docs/pom.xml | 1 - docs/src/test/bash/build-helper.sh | 2 ++ docs/src/test/bats/ghpages.bats | 4 ++-- docs/src/test/bats/update-guides.bats | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/pom.xml b/docs/pom.xml index c2d981a0..9e101941 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -209,7 +209,6 @@ ${skipTests} - true ${basedir}/src/test/bash/run-bats.sh diff --git a/docs/src/test/bash/build-helper.sh b/docs/src/test/bash/build-helper.sh index fea326b4..8308c252 100755 --- a/docs/src/test/bash/build-helper.sh +++ b/docs/src/test/bash/build-helper.sh @@ -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" diff --git a/docs/src/test/bats/ghpages.bats b/docs/src/test/bats/ghpages.bats index 6bd942d8..54ae2376 100644 --- a/docs/src/test/bats/ghpages.bats +++ b/docs/src/test/bats/ghpages.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 )" diff --git a/docs/src/test/bats/update-guides.bats b/docs/src/test/bats/update-guides.bats index fc7871bc..e45a3183 100644 --- a/docs/src/test/bats/update-guides.bats +++ b/docs/src/test/bats/update-guides.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 )"