Revision b736d380
Added by Andreas Kohlbecker over 4 years ago
modules/cdm_dataportal/test/phpUnit/README | ||
---|---|---|
19 | 19 |
sudo ./pear config-set auto_discover 1 |
20 | 20 |
sudo ./pear install phpunit/PHPUnit |
21 | 21 |
|
22 |
the above should be suficcient,
|
|
22 |
the above should be sufficient,
|
|
23 | 23 |
but in case something is going wrong you also can try : |
24 | 24 |
|
25 | 25 |
sudo ./pear upgrade pear |
... | ... | |
68 | 68 |
|
69 | 69 |
/usr/bin/php52/php /usr/bin/php52/phpunit --verbose --bootstrap bootstrap.php |
70 | 70 |
|
71 |
therefore we provide the script phpunitRunner.php wich will execute phpUnit. |
|
71 |
therefore we provide the script phpunitRunner.php which will execute phpUnit.
|
|
72 | 72 |
In order to configure it properly you need to supply some environment variables. |
73 | 73 |
|
74 | 74 |
DRUPAL_ROOT - path to the root of your Drupal installation, that is dataportal installation. |
75 |
XDEBUG_CONFIG - mjust be set to 'idekey=ECLIPSE_DBGP'
|
|
75 |
XDEBUG_CONFIG - must be set to 'idekey=ECLIPSE_DBGP' |
|
76 | 76 |
SITE_BASE_PATH - set this variable to the base path of the dataportal website you want to use for testing, eg: /flora-malesiana |
77 | 77 |
|
78 | 78 |
|
79 |
Create a new php run configuration wich executes phpunitRunner.php and configure the above named |
|
79 |
Create a new php run configuration which executes phpunitRunner.php and configure the above named
|
|
80 | 80 |
environment variables in the "Environment" tab. |
81 | 81 |
In the "PhpScriptArgument" tab set the following: |
82 | 82 |
|
Also available in: Unified diff
typos in README