diff --git a/tests/test.bats b/tests/test.bats index 6d3dc76..02609e7 100644 --- a/tests/test.bats +++ b/tests/test.bats @@ -16,8 +16,8 @@ setup() { teardown() { set -eu -o pipefail cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 ) - ddev delete -Oy ${PROJNAME} - [ "${TESTDIR}" != "" ] && rm -rf ${TESTDIR} + # ddev delete -Oy ${PROJNAME} + # [ "${TESTDIR}" != "" ] && rm -rf ${TESTDIR} } health_checks() { @@ -38,27 +38,27 @@ collector_checks() { ddev exec "curl -s xhgui:80" | grep '' } -@test "install from directory" { - set -eu -o pipefail - cd ${TESTDIR} - echo "# ddev get ${DIR} with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3 - ddev get ${DIR} - ddev restart +# @test "install from directory" { +# set -eu -o pipefail +# cd ${TESTDIR} +# echo "# ddev get ${DIR} with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3 +# ddev get ${DIR} +# ddev restart - # Check service works - health_checks -} +# # Check service works +# health_checks +# } -@test "install from release" { - set -eu -o pipefail - cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 ) - echo "# ddev get tyler36/ddev-xhgui with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3 - ddev get tyler36/ddev-xhgui - ddev restart +# @test "install from release" { +# set -eu -o pipefail +# cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 ) +# echo "# ddev get tyler36/ddev-xhgui with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3 +# ddev get tyler36/ddev-xhgui +# ddev restart - # Check service works - health_checks -} +# # Check service works +# health_checks +# } @test "a site can be profiled" { set -eu -o pipefail @@ -68,7 +68,7 @@ collector_checks() { echo "# Create a demo website at ${TESTDIR}" >&3 ddev composer require perftools/php-profiler ddev composer install - mkdir -p ${TESTDIR}/public + ddev config --docroot=public --create-docroot echo "