Skip to content

Commit

Permalink
fix: Minor updates to ddev custom commands (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay authored Apr 30, 2024
1 parent 311758c commit 238c9c8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion commands/web/drupal
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#ddev-generated
## Description: Run commands from the core drupal script
## Usage: drupal
## Example: "ddev drupal --help"
## Example: ddev drupal --help\nddev drupal list\nddev drupal install demo_umami
## ExecRaw: true

/**
Expand Down
2 changes: 1 addition & 1 deletion commands/web/nightwatch
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#ddev-generated
## Description: Run Nightwatch
## Usage: nightwatch
## Example: "ddev nightwatch --tag core"
## Example: ddev nightwatch --tag core

echo "Clearing old webdriver sessions"
curl -f -s http://chrome:4444/status | jq -r '.value.nodes[].slots[].session.sessionId' | while read -r session; do if [ "$session" != "null" ]; then curl -X DELETE "http://chrome:4444/session/$session"; fi; done
Expand Down
8 changes: 6 additions & 2 deletions commands/web/phpunit
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
#ddev-generated
## Description: Run PHPUnit
## Usage: phpunit
## Example: "ddev phpunit core/modules/sdc/tests"
## Example: "ddev phpunit core/modules/field"

if ! command -v phpunit >/dev/null; then
echo "phpunit is not in PATH in the web container. You probably forgot to 'ddev composer install'"
exit 2
fi
echo "Clearing old webdriver sessions"
curl -f -s http://chrome:4444/status | jq -r '.value.nodes[].slots[].session.sessionId' | while read -r session; do if [ "$session" != "null" ]; then curl -X DELETE "http://chrome:4444/session/$session"; fi; done
./vendor/bin/phpunit -c core --verbose "$@"
phpunit -c core --verbose "$@"

0 comments on commit 238c9c8

Please sign in to comment.