Skip to content

Commit 238c9c8

Browse files
authored
fix: Minor updates to ddev custom commands (#24)
1 parent 311758c commit 238c9c8

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

commands/web/drupal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#ddev-generated
66
## Description: Run commands from the core drupal script
77
## Usage: drupal
8-
## Example: "ddev drupal --help"
8+
## Example: ddev drupal --help\nddev drupal list\nddev drupal install demo_umami
99
## ExecRaw: true
1010

1111
/**

commands/web/nightwatch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#ddev-generated
44
## Description: Run Nightwatch
55
## Usage: nightwatch
6-
## Example: "ddev nightwatch --tag core"
6+
## Example: ddev nightwatch --tag core
77

88
echo "Clearing old webdriver sessions"
99
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

commands/web/phpunit

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
#ddev-generated
44
## Description: Run PHPUnit
55
## Usage: phpunit
6-
## Example: "ddev phpunit core/modules/sdc/tests"
6+
## Example: "ddev phpunit core/modules/field"
77

8+
if ! command -v phpunit >/dev/null; then
9+
echo "phpunit is not in PATH in the web container. You probably forgot to 'ddev composer install'"
10+
exit 2
11+
fi
812
echo "Clearing old webdriver sessions"
913
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
10-
./vendor/bin/phpunit -c core --verbose "$@"
14+
phpunit -c core --verbose "$@"

0 commit comments

Comments
 (0)