You are here

runtests.sh in Devel 7

#!/usr/bin/env sh

# This script will run phpunit-based test classes using Drush's
# test framework.  First, the Drush executable is located, and
# then phpunit is invoked, passing in drush_testcase.inc as
# the bootstrap file.
#
# Any parameters that may be passed to phpunit may also be used
# with runtests.sh.

DRUSH_PATH="`which drush`"
DRUSH_DIRNAME="`dirname -- "$DRUSH_PATH"`"

# if [ $# = 0 ] ; then
#   phpunit --bootstrap="$DRUSH_DIRNAME/tests/drush_testcase.inc" .
# else
#   phpunit --bootstrap="$DRUSH_DIRNAME/tests/drush_testcase.inc" "$@"
# fi

#Instead, hard code target file so we don't find a simpletest file at
# /lib/Drupal/devel_generate/Tests/DevelGenerateTest.php.
phpunit --bootstrap="$DRUSH_DIRNAME/tests/drush_testcase.inc" develDrushTest.php

File

runtests.sh
View source
  1. #!/usr/bin/env sh
  2. # This script will run phpunit-based test classes using Drush's
  3. # test framework. First, the Drush executable is located, and
  4. # then phpunit is invoked, passing in drush_testcase.inc as
  5. # the bootstrap file.
  6. #
  7. # Any parameters that may be passed to phpunit may also be used
  8. # with runtests.sh.
  9. DRUSH_PATH="`which drush`"
  10. DRUSH_DIRNAME="`dirname -- "$DRUSH_PATH"`"
  11. # if [ $# = 0 ] ; then
  12. # phpunit --bootstrap="$DRUSH_DIRNAME/tests/drush_testcase.inc" .
  13. # else
  14. # phpunit --bootstrap="$DRUSH_DIRNAME/tests/drush_testcase.inc" "$@"
  15. # fi
  16. #Instead, hard code target file so we don't find a simpletest file at
  17. # /lib/Drupal/devel_generate/Tests/DevelGenerateTest.php.
  18. phpunit --bootstrap="$DRUSH_DIRNAME/tests/drush_testcase.inc" develDrushTest.php