Browse files

Enabled test log generation in phpunit.xml

  • Loading branch information...
1 parent 01ed068 commit 5ffc36207602d0d06167b989c3b39f8f97ce998c @wjgilmore committed Feb 28, 2011
Showing with 12 additions and 17 deletions.
  1. +1 −0 .gitignore
  2. +1 −13 tests/application/bootstrap.php
  3. +10 −4 tests/phpunit.xml
View
1 .gitignore
@@ -4,3 +4,4 @@ application/configs/application.ini
.buildpath
library/Doctrine
library/Symfony
+tests/log
View
14 tests/application/bootstrap.php
@@ -1,20 +1,8 @@
<?php
define('BASE_PATH', realpath(dirname(__FILE__) . '/../../'));
-
-define('APPLICATION_PATH', BASE_PATH . '/application');
-
-set_include_path(
- '.'
- . PATH_SEPARATOR . BASE_PATH . '/library'
- . PATH_SEPARATOR . get_include_path()
-);
-set_include_path(implode(PATH_SEPARATOR, array(
- realpath(APPLICATION_PATH . '/../application/views/scripts'),
- realpath(APPLICATION_PATH . '/../application/models'),
- get_include_path(),
-)));
+define('APPLICATION_PATH', BASE_PATH . '/application');
require_once 'controllers/ControllerTestCase.php';
require_once 'models/ModelTestCase.php';
View
14 tests/phpunit.xml
@@ -1,7 +1,7 @@
-<phpunit bootstrap="./application/bootstrap.php" colors="true">
- <testsuite name="z2d2">
- <directory>./</directory>
- </testsuite>
+<phpunit bootstrap="./application/bootstrap.php" colors="true">
+ <testsuite name="z2d2">
+ <directory>./</directory>
+ </testsuite>
<filter>
<whitelist>
@@ -14,4 +14,10 @@
</whitelist>
</filter>
+ <logging>
+ <log type="coverage-html" target="/var/www/z2d2/tests/log/report" charset="UTF-8"
+ yui="true" highlight="true" lowUpperBound="50" highLowerBound="80"/>
+ <log type="testdox-html" target="/var/www/z2d2/tests/log/testdox.html" />
+ </logging>
+
</phpunit>

0 comments on commit 5ffc362

Please sign in to comment.