From be9c2dff86b0053290263cdf8a9e46a14a81eaaf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 25 Apr 2010 14:48:12 +0000 Subject: [PATCH] New: First change to add PHPUnit --- test/README | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/README b/test/README index 5c5d5a97d8b..90c1efa8187 100644 --- a/test/README +++ b/test/README @@ -10,6 +10,10 @@ If using Eclipse, you must also add an entry as external tool for phpunit progra -Workspace: ${workspace_loc} -Arguments: /usr/bin/phpunit ${resource_path} -* Run test by -Running > phpunit testfile.php +* Run unit tests: +Run > phpunit TestFile.php 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.