| 1 | To run the tests you need to configure it as described in the wiki: |
| 2 | |
| 3 | http://wiki.civicrm.org/confluence/display/CRM/Testing |
| 4 | |
| 5 | The commands to run the tests include: |
| 6 | |
| 7 | $ cd SVNROOT/tools |
| 8 | $ scripts/phpunit -u db_username -pdb_password -h db_host api_v2_ContactTest |
| 9 | $ scripts/phpunit -u db_username -pdb_password -h db_host WebTest_Contact_AddTest |
| 10 | $ scripts/phpunit -u db_username -pdb_password -h db_host WebTest_AllTests |
| 11 | $ scripts/phpunit -u db_username -pdb_password -h db_host api_v3_AllTests |
| 12 | |
| 13 | You can also specify database name using "-bdb_name" option. If database name is not specified it will |
| 14 | use "civicrm_tests_dev" as default db for all the tests. |
| 15 | |
| 16 | |