tims-todo/build/phpunit.xml

48 lines
1.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<phpunit
colors="true"
stopOnFailure="false"
bootstrap="../tests/bootstrap.php">
<php>
<server name="SERVER_NAME" value="http://example.com" />
<server name="REMOTE_ADDR" value="127.0.0.1" />
<server name="HTTP_USER_AGENT" value="PHPUnit" />
</php>
<filter>
<whitelist>
<directory suffix=".php">../application/controllers</directory>
<directory suffix=".php">../application/core</directory>
<directory suffix=".php">../application/libraries</directory>
<directory suffix=".php">../application/models</directory>
<directory suffix=".php">../application/helpers</directory>
</whitelist>
</filter>
<testsuites>
<testsuite name="ControllerTests">
<directory suffix=".php">../tests/controllers</directory>
</testsuite>
<testsuite name="ExtensionTests">
<directory suffix=".php">../tests/core</directory>
</testsuite>
<testsuite name="HelperTests">
<directory suffix=".php">../tests/helpers</directory>
</testsuite>
<testsuite name="LibTests">
<directory suffix=".php">../tests/libs</directory>
</testsuite>
<testsuite name="ModelTests">
<directory suffix=".php">../tests/models</directory>
</testsuite>
<testsuite name="SystemTests">
<directory suffix=".php">../tests/system</directory>
</testsuite>
</testsuites>
<logging>
<log type="coverage-html" target="coverage"/>
<log type="coverage-clover" target="logs/clover.xml"/>
<log type="coverage-crap4j" target="logs/crap4j.xml"/>
<log type="coverage-xml" target="logs/coverage" />
<log type="junit" target="logs/junit.xml" logIncompleteSkipped="false"/>
</logging>
</phpunit>