Skip to content

Commit

Permalink
Merge pull request #16 from tyler36/20241025-Use-ddev-add-on-command
Browse files Browse the repository at this point in the history
Use `ddev add-on` command
  • Loading branch information
mmunz authored Jan 12, 2025
2 parents 0bb446a + 4c93ad0 commit 12b2327
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
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

0 comments on commit 12b2327

Please sign in to comment.