Skip to content

Commit

Permalink
Enable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hanoii committed Apr 27, 2024
1 parent e11ad06 commit 6ac8bd0
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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
}

0 comments on commit 6ac8bd0

Please sign in to comment.