Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler36 committed Jun 18, 2024
1 parent 8b6e8c8 commit a24b5f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docker-compose.cypress.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ddev-generated
services:
cypress:
image: cypress/included:12.6.0
image: cypress/included:13.11.0
container_name: ddev-${DDEV_SITENAME}-cypress
labels:
com.ddev.site-name: ${DDEV_SITENAME}
Expand Down
22 changes: 9 additions & 13 deletions tests/test.bats
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
setup() {
set -eu -o pipefail
export DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )/.."
export PROJNAME=test-cypress
export TESTDIR=~/tmp/test-cypress
mkdir -p $TESTDIR
export PROJNAME=test-cypress
export DDEV_NON_INTERACTIVE=true
ddev delete -Oy ${PROJNAME} >/dev/null 2>&1 || true
cd "${TESTDIR}"
mkdir -p "public"
cp -r "${DIR}/tests/testdata/"* "${TESTDIR}"
ddev config --project-name=${PROJNAME} --docroot=public
ddev start -y >/dev/null

# Disable DRI3 extension
export LIBGL_DRI3_DISABLE=1
}

health_checks() {
Expand All @@ -37,11 +33,11 @@ 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 tyler36/ddev-cypress with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev get tyler36/ddev-cypress
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 tyler36/ddev-cypress with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
# ddev get tyler36/ddev-cypress
# ddev restart >/dev/null
# health_checks
# }

0 comments on commit a24b5f5

Please sign in to comment.