README.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Drush's test suite based on phpunit (http://www.phpunit.de/).
  2. Usage
  3. --------
  4. - Install PHPUnit [*]
  5. - Optional. Copy phpunit.xml.dist to phpunit.xml and customize if needed.
  6. - From the /tests subdirectory, run `phpunit .` or `runner.php .`
  7. Advanced usage
  8. ---------
  9. - Run only tests matching a regex: phpunit --filter=testVersionString .
  10. - XML results: phpunit --filter=testVersionString --log-junit results.xml .
  11. Notes
  12. ----------
  13. - I have run tests within Netbeans and it works.
  14. - Speedup downloads with Squid as forward proxy - http://reluctanthacker.rollett.org/node/114.
  15. [*] Install PHPUnit:
  16. Drush requires PHPUnit 3.5 or later; installing with PEAR is easiest.
  17. On Linux:
  18. ---------
  19. sudo apt-get install php5-curl php-pear
  20. sudo pear upgrade --force PEAR
  21. sudo pear channel-discover pear.phpunit.de
  22. sudo pear channel-discover components.ez.no
  23. sudo pear channel-discover pear.symfony-project.com
  24. sudo pear install --alldeps phpunit/PHPUnit
  25. On Windows:
  26. -----------
  27. Download and save from go-pear.phar http://pear.php.net/go-pear.phar
  28. php -q go-pear.phar
  29. pear channel-discover pear.phpunit.de
  30. pear channel-discover components.ez.no
  31. pear channel-discover pear.symfony-project.com
  32. pear install --alldeps phpunit/PHPUnit