README.txt 1.3 KB

1234567891011121314151617181920212223242526272829
  1. Views Tests
  2. ```````````
  3. All of the tests may be executed with the following command:
  4. $ scripts/run-tests.sh --color --url http://example.com/ --php `which php` --concurrency 4 --verbose --directory 'sites/all/modules/contrib/views/tests' 2> /dev/null
  5. Explanation:
  6. --color
  7. Colorizes the output. Optional.
  8. --url http://example.com/
  9. The name of the Drupal 7 hostname used locally for running tests, e.g.
  10. "http://drupal7.dev". Required.
  11. --php `which php`
  12. Tells the test runner the path to the PHP binary. Only necessary if the test
  13. runner is unable to find the path automatically or to use an alternative
  14. PHP binary. Optional.
  15. --cuncurrency 4
  16. Run multiple test processes simultaneously. Four appears to be a good
  17. balance between melting the computer and improving performance. Optional.
  18. --verbose
  19. Display results for all of the assertion statements after the summary
  20. details. Optional.
  21. --directory 'sites/all/modules/contrib/views/tests'
  22. Run all of the commands in the following directory. The path is relative to
  23. the Drupal installation's root directory. This will run all of Views' tests
  24. in one go, rather than either repeating the names of test groups or running
  25. multiple commands. Optional.
  26. 2> /dev/null
  27. Outputs all error messages to /dev/null, i.e. hides them. Optional.