3 # This script will run phpunit-based test classes using Drush's
4 # test framework. First, the Drush executable is located, and
5 # then phpunit is invoked, pointing to Drush's phpunit.xml as
8 # Any parameters that may be passed to `phpunit` may also be used
11 DRUSH_PATH="`which drush`"
12 DRUSH_DIRNAME="`dirname -- "$DRUSH_PATH"`"
13 # The following line is needed is you use a `drush` that differs from `which drush`
14 # export UNISH_DRUSH=$DRUSH_PATH
17 phpunit --configuration="$DRUSH_DIRNAME/tests" drush
19 # Pass along any arguments.
20 phpunit --configuration="$DRUSH_DIRNAME/tests" $@