runtests.sh 770 B

12345678910111213141516171819202122
  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