upal icon indicating copy to clipboard operation
upal copied to clipboard

Run all tests?

Open jhedstrom opened this issue 13 years ago • 1 comments

I haven't found an easy way to run all the tests scattered throughout the Drupal modules directory. Is this possible?

I've tried things such as

phpunit --configuration ~/work/contributions/utilities/upal/phpunit.xml `find -name *test | xargs`

but that seems to only run the first .test file found.

jhedstrom avatar Mar 27 '12 18:03 jhedstrom

This is not done yet. One challenge we have is that we have multiple Cases in same file. In Drupal 8, I think that will go away though.

Anyway, we probably need to compose a test suite. See

  • http://www.phpunit.de/manual/3.2/en/organizing-test-suites.html
  • http://www.phpunit.de/manual/3.2/en/appendixes.configuration.html#appendixes.configuration.testsuite
  • http://www.phpunit.de/manual/3.2/en/api.html#api.testsuite

weitzman avatar Mar 28 '12 13:03 weitzman