README.txt

  1. 6.x tests/README.txt
  2. 3.x README.txt
  3. 4.x tests/README.txt
  4. 4.x README.txt
  5. 5.x tests/README.txt
  6. 5.x README.txt
  7. 5.x lib/README.txt
Drush's test suite based on phpunit (http://www.phpunit.de/).

Usage
--------
- Install PHPUnit [*]
- Optional. Copy phpunit.xml.dist to phpunit.xml and customize if needed.
- From the /tests subdirectory, run `phpunit .` or `runner.php .`

Advanced usage
---------
- Run only tests matching a regex: phpunit --filter=testVersionString .
- XML results: phpunit --filter=testVersionString --log-junit results.xml .

Notes
----------
- I have run tests within Netbeans and it works.
- Speedup downloads with Squid as forward proxy - http://reluctanthacker.rollett.org/node/114.



[*] Install PHPUnit:

Drush requires PHPUnit 3.5 or later; installing with PEAR is easiest.
 
On Linux:
---------

  sudo apt-get install php5-curl php-pear
  sudo pear upgrade --force PEAR
  sudo pear channel-discover pear.phpunit.de
  sudo pear channel-discover components.ez.no
  sudo pear channel-discover pear.symfony-project.com
  sudo pear install --alldeps phpunit/PHPUnit

On Windows:
-----------

Download and save from go-pear.phar http://pear.php.net/go-pear.phar

  php -q go-pear.phar
  pear channel-discover pear.phpunit.de
  pear channel-discover components.ez.no
  pear channel-discover pear.symfony-project.com
  pear install --alldeps phpunit/PHPUnit

File

tests/README.txt
View source
  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