2016-09-12 07:42:05 +02:00
|
|
|
<!--
|
|
|
|
PHPUnit configuration for SilverStripe
|
|
|
|
|
|
|
|
Requires PHPUnit 3.5+
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
- "phpunit": Runs all tests in all folders
|
|
|
|
- "phpunit framework/tests/": Run all tests of the framework module
|
|
|
|
- "phpunit framework/tests/filesystem": Run all filesystem tests within the framework module
|
|
|
|
- "phpunit framework/tests/filesystem/FolderTest.php": Run a single test
|
|
|
|
- "phpunit <dash><dash>coverage-html assets/": Generate coverage report (replace <dash> with "-", requires xdebug)
|
|
|
|
|
|
|
|
More information:
|
|
|
|
- http://www.phpunit.de/manual/current/en/textui.html
|
|
|
|
- http://doc.silverstripe.org/framework/en/topics/testing/#configuration
|
|
|
|
|
|
|
|
It is safe to remove this file for normal website operation.
|
|
|
|
-->
|
2016-11-13 08:35:43 +01:00
|
|
|
<phpunit bootstrap="tests/bootstrap.php" colors="true">
|
2016-09-12 07:42:05 +02:00
|
|
|
|
|
|
|
<testsuite name="Default">
|
2016-10-14 03:30:05 +02:00
|
|
|
<directory>tests/php</directory>
|
|
|
|
<directory>admin/tests/php</directory>
|
2016-09-12 07:42:05 +02:00
|
|
|
</testsuite>
|
|
|
|
|
|
|
|
<listeners>
|
|
|
|
<listener class="SilverStripe\Dev\TestListener" />
|
|
|
|
</listeners>
|
|
|
|
|
|
|
|
<groups>
|
|
|
|
<exclude>
|
|
|
|
<group>sanitychecks</group>
|
|
|
|
</exclude>
|
|
|
|
</groups>
|
2016-09-26 21:47:01 +02:00
|
|
|
|
|
|
|
<filter>
|
|
|
|
<whitelist addUncoveredFilesFromWhitelist="true">
|
|
|
|
<directory suffix=".php">.</directory>
|
|
|
|
<exclude>
|
|
|
|
<directory suffix=".php">thirdparty/</directory>
|
|
|
|
<directory suffix=".php">admin/thirdparty/</directory>
|
2016-10-14 03:30:05 +02:00
|
|
|
<directory suffix=".php">tests/php/</directory>
|
|
|
|
<directory suffix=".php">admin/tests/php/</directory>
|
2016-09-26 21:47:01 +02:00
|
|
|
</exclude>
|
|
|
|
</whitelist>
|
|
|
|
</filter>
|
|
|
|
|
2016-09-12 07:42:05 +02:00
|
|
|
</phpunit>
|