2010-10-15 03:20:45 +02:00
|
|
|
<!--
|
2012-05-09 12:33:22 +02:00
|
|
|
PHPUnit configuration for SilverStripe
|
|
|
|
|
2012-05-28 08:20:46 +02:00
|
|
|
Requires PHPUnit 3.5+
|
2012-05-09 12:33:22 +02:00
|
|
|
|
2010-10-15 03:20:45 +02:00
|
|
|
Usage:
|
|
|
|
- "phpunit": Runs all tests in all folders
|
2012-04-12 11:15:32 +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
|
2010-10-15 03:20:45 +02:00
|
|
|
- "phpunit <dash><dash>coverage-html assets/": Generate coverage report (replace <dash> with "-", requires xdebug)
|
|
|
|
|
2012-11-23 15:21:16 +01:00
|
|
|
More information:
|
|
|
|
- http://www.phpunit.de/manual/current/en/textui.html
|
|
|
|
- http://doc.silverstripe.org/framework/en/topics/testing/#configuration
|
2010-10-15 03:20:45 +02:00
|
|
|
-->
|
2012-11-23 15:20:10 +01:00
|
|
|
<phpunit bootstrap="framework/tests/bootstrap.php" colors="true">
|
2012-05-28 08:20:46 +02:00
|
|
|
|
2010-10-15 03:20:45 +02:00
|
|
|
<testsuite name="Default">
|
2012-05-28 08:20:46 +02:00
|
|
|
<directory>mysite/tests</directory>
|
|
|
|
<directory>cms/tests</directory>
|
|
|
|
<directory>framework/tests</directory>
|
2010-10-15 03:20:45 +02:00
|
|
|
</testsuite>
|
2012-05-28 08:20:46 +02:00
|
|
|
|
2010-10-15 03:20:45 +02:00
|
|
|
<listeners>
|
2012-05-28 06:17:53 +02:00
|
|
|
<listener class="SS_TestListener" file="framework/dev/TestListener.php" />
|
2010-10-15 03:20:45 +02:00
|
|
|
</listeners>
|
2010-09-22 07:06:10 +02:00
|
|
|
|
2010-10-15 03:21:16 +02:00
|
|
|
<groups>
|
|
|
|
<exclude>
|
|
|
|
<group>sanitychecks</group>
|
|
|
|
</exclude>
|
|
|
|
</groups>
|
2012-05-28 08:20:46 +02:00
|
|
|
</phpunit>
|