Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

phpunit logging works when run stand-alone, removed phpunit logging arg

from build.xml so there is a single location for phpunit options
  • Loading branch information...
commit e04e581a4cef45c299716cbfa0f98a9cefcce118 1 parent 0543ea1
@michaelalber michaelalber authored
Showing with 18 additions and 19 deletions.
  1. +3 −8 tests/build.xml
  2. +15 −11 tests/phpunit.xml
View
11 tests/build.xml
@@ -13,14 +13,9 @@
<mkdir dir="${basedir}/build/pdepend"/>
</target>
- <target name="phpunit">
- <exec dir="${basedir}" executable="phpunit" failonerror="false">
- <arg line="--configuration phpunit.xml
- --log-junit ${basedir}/build/logs/phpunit.xml
- --coverage-html ${basedir}/build/coverage
- --testdox-text ${basedir}/build/logs/testdox.txt
- --process-isolation" />
- </exec>
+ <target name="phpunit"
+ description="Run unit tests using PHPUnit and generates reports">
+ <exec dir="${basedir}" executable="phpunit" failonerror="false"/>
</target>
<!-- Run pdepend, phpmd, phpcpd, and phpcs in parallel -->
View
26 tests/phpunit.xml
@@ -1,25 +1,29 @@
<phpunit bootstrap="./bootstrap.php" colors="true" stopOnFailure="false" syntaxCheck="false" processIsolation="true">
<testsuites>
- <testsuite name="Application unit test suite">
+ <testsuite name="Application unit test suite">
<directory>./application</directory>
<directory>./library</directory>
- <directory>./../application/modules/default/tests</directory>
- <directory>./../application/modules/auth/tests</directory>
-
- <logging>
- <log type="coverage-html" target="./log/coverage" charset="UTF-8"
- yui="true" highlight="false" lowUpperBound="60" highLowerBound="90"/>
- </logging>
- </testsuite>
-
+ <directory>./../application/modules</directory>
+ </testsuite>
+
<!-- Remove lines below to ignore selenium tests -->
<!--
<testsuite name="Suite for Selenium">
<directory>./selenium</directory>
</testsuite>
-->
-
</testsuites>
+
+ <logging>
+ <log type="coverage-html" target="./build/coverage" title="Zend Framework Best Practice"
+ charset="UTF-8" yui="true" highlight="true"
+ lowUpperBound="35" highLowerBound="70"/>
+ <log type="coverage-xml" target="./build/logs/coverage.xml"/>
+ <log type="coverage-clover" target="./build/logs/clover.xml"/>
+ <log type="junit" target="./build/logs/phpunit.xml" logIncompleteSkipped="false"/>
+ <log type="testdox-text" target="./build/logs/testdox.txt"/>
+ </logging>
+
</phpunit>
Please sign in to comment.
Something went wrong with that request. Please try again.