2011-01-10 22:30:46 +01:00
|
|
|
<!--
|
2013-05-29 18:08:35 +02:00
|
|
|
PHPUnit configuration for SilverStripe
|
|
|
|
|
|
|
|
Requires PHPUnit 3.5+
|
|
|
|
|
2011-01-10 22:30:46 +01:00
|
|
|
Usage:
|
|
|
|
- "phpunit": Runs all tests in all folders
|
2013-05-29 18:08:35 +02:00
|
|
|
- "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
|
2011-01-10 22:30:46 +01:00
|
|
|
- "phpunit <dash><dash>coverage-html assets/": Generate coverage report (replace <dash> with "-", requires xdebug)
|
|
|
|
|
2013-05-29 18:08:35 +02:00
|
|
|
More information:
|
|
|
|
- http://www.phpunit.de/manual/current/en/textui.html
|
|
|
|
- http://doc.silverstripe.org/framework/en/topics/testing/#configuration
|
2011-01-10 22:30:46 +01:00
|
|
|
-->
|
2013-05-29 18:08:35 +02:00
|
|
|
<phpunit bootstrap="framework/tests/bootstrap.php" colors="true">
|
|
|
|
|
2011-01-10 22:30:46 +01:00
|
|
|
<testsuite name="Default">
|
2013-05-29 18:08:35 +02:00
|
|
|
<directory>mysite/tests</directory>
|
|
|
|
<directory>cms/tests</directory>
|
|
|
|
<directory>framework/tests</directory>
|
2011-01-10 22:30:46 +01:00
|
|
|
</testsuite>
|
|
|
|
|
|
|
|
<listeners>
|
2013-05-29 18:08:35 +02:00
|
|
|
<listener class="SS_TestListener" file="framework/dev/TestListener.php" />
|
2011-01-10 22:30:46 +01:00
|
|
|
</listeners>
|
|
|
|
|
|
|
|
<groups>
|
|
|
|
<exclude>
|
|
|
|
<group>sanitychecks</group>
|
|
|
|
</exclude>
|
|
|
|
</groups>
|
|
|
|
</phpunit>
|