Skip to content
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
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 "$@"