From 6ac8bd0d6d366cf1411f259ac091028e5fd0a0e1 Mon Sep 17 00:00:00 2001 From: Ariel Barreiro Date: Fri, 26 Apr 2024 21:09:15 -0300 Subject: [PATCH] Enable tests --- tests/test.bats | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/tests/test.bats b/tests/test.bats index 4940186..fdfae41 100644 --- a/tests/test.bats +++ b/tests/test.bats @@ -13,8 +13,14 @@ setup() { health_checks() { # Do something useful here that verifies the add-on - # ddev exec "curl -s elasticsearch:9200" | grep "${PROJNAME}-elasticsearch" - ddev exec "curl -s https://localhost:443/" + ddev ahoy --version + ddev fish --version + ddev exec bash -cli z + ddev exec starship --version + ddev exec --raw bash -cli "fzf --version" + ddev exec bat --version + ddev gum --version + ddev exec editor --version | grep -i vim } teardown() { @@ -33,12 +39,12 @@ teardown() { health_checks } -#@test "install from release" { -# set -eu -o pipefail -# cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 ) -# echo "# ddev get ddev/ddev-pimp-my-shell with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3 -# ddev get ddev/ddev-pimp-my-shell -# ddev restart >/dev/null -# health_checks -#} +@test "install from release" { + set -eu -o pipefail + cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 ) + echo "# ddev get ddev/ddev-pimp-my-shell with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3 + ddev get ddev/ddev-pimp-my-shell + ddev restart >/dev/null + health_checks +}