New: First change to add PHPUnit
This commit is contained in:
parent
87d3c7a06e
commit
be9c2dff86
@ -10,6 +10,10 @@ If using Eclipse, you must also add an entry as external tool for phpunit progra
|
|||||||
-Workspace: ${workspace_loc}
|
-Workspace: ${workspace_loc}
|
||||||
-Arguments: /usr/bin/phpunit ${resource_path}
|
-Arguments: /usr/bin/phpunit ${resource_path}
|
||||||
|
|
||||||
* Run test by
|
* Run unit tests:
|
||||||
Running > phpunit testfile.php
|
Run > phpunit TestFile.php
|
||||||
If using Eclipse, select the test and click on menu "Run external tools and choose PHPUnit".
|
If using Eclipse, select the test and click on menu "Run external tools and choose PHPUnit".
|
||||||
|
|
||||||
|
* List code coverage by unit tests:
|
||||||
|
Run > phpunit --coverage-html ./report TestFile.php
|
||||||
|
Note that xdebug must be installed for this feature to work.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user