Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ddev add-on command #16

Merged
merged 6 commits into from
Jan 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ config and for links to a more advanced example config.
Install this addon with

```shell
ddev get mmunz/ddev-backstopjs
ddev add-on get mmunz/ddev-backstopjs
```

After that you need to restart the ddev project:
Expand All @@ -34,7 +34,7 @@ By default, the backstop tests are expected in $DDEV_APPDIR/tests/backstop.

Provide your own backstop.js or backstop.json configs there.

Hint: have a look at my example [backstopjs-config](https://github.com/mmunz/backstopjs-config)
Hint: have a look at my example [backstopjs-config](https://github.com/mmunz/backstopjs-config)

Alternatively you can create a simple backstop.json config with:

Expand Down Expand Up @@ -73,7 +73,7 @@ ddev backstop-results
Alternatively open the generated HTML-Report with your browser, e.g.:

```shell
open tests/backstop/backstop_data/_mytestproject_/html_report/index.html
open tests/backstop/backstop_data/_mytestproject_/html_report/index.html
```

## Changes to the original docker image
Expand Down
8 changes: 4 additions & 4 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ teardown() {
@test "install from directory" {
set -eu -o pipefail
cd ${TESTDIR}
echo "# ddev get ${DIR} with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev get ${DIR}
echo "# ddev add-on get ${DIR} with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev add-on get ${DIR}
ddev restart

# backstop is installed and can show its version
Expand All @@ -37,8 +37,8 @@ teardown() {
#@test "install from release" {
# set -eu -o pipefail
# cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 )
# echo "# ddev get drud/ddev-addon-template with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
# ddev get drud/ddev-addon-template
# echo "# ddev add-on get drud/ddev-addon-template with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
# ddev add-on get drud/ddev-addon-template
# ddev restart >/dev/null
# # Do something useful here that verifies the add-on
# # ddev exec "curl -s elasticsearch:9200" | grep "${PROJNAME}-elasticsearch"
Expand Down
Loading