2010-10-15 01:20:45 +00:00
|
|
|
<!--
|
2012-05-09 22:33:22 +12:00
|
|
|
PHPUnit configuration for SilverStripe
|
|
|
|
|
2012-05-28 18:20:46 +12:00
|
|
|
Requires PHPUnit 3.5+
|
2012-05-09 22:33:22 +12:00
|
|
|
|
2010-10-15 01:20:45 +00:00
|
|
|
Usage:
|
|
|
|
- "phpunit": Runs all tests in all folders
|
2012-04-12 21:15:32 +12: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 01:20:45 +00: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
|
2014-09-23 18:21:02 +12:00
|
|
|
|
|
|
|
It is safe to remove this file for normal website operation.
|
2010-10-15 01:20:45 +00:00
|
|
|
-->
|
2012-11-23 15:20:10 +01:00
|
|
|
<phpunit bootstrap="framework/tests/bootstrap.php" colors="true">
|
2012-05-28 18:20:46 +12:00
|
|
|
|
2010-10-15 01:20:45 +00:00
|
|
|
<testsuite name="Default">
|
2012-05-28 18:20:46 +12:00
|
|
|
<directory>mysite/tests</directory>
|
|
|
|
<directory>cms/tests</directory>
|
|
|
|
<directory>framework/tests</directory>
|
2010-10-15 01:20:45 +00:00
|
|
|
</testsuite>
|
2012-05-28 18:20:46 +12:00
|
|
|
|
2010-10-15 01:20:45 +00:00
|
|
|
<listeners>
|
2012-05-28 16:17:53 +12:00
|
|
|
<listener class="SS_TestListener" file="framework/dev/TestListener.php" />
|
2010-10-15 01:20:45 +00:00
|
|
|
</listeners>
|
2010-09-22 05:06:10 +00:00
|
|
|
|
2010-10-15 01:21:16 +00:00
|
|
|
<groups>
|
|
|
|
<exclude>
|
|
|
|
<group>sanitychecks</group>
|
|
|
|
</exclude>
|
|
|
|
</groups>
|
2012-05-28 18:20:46 +12:00
|
|
|
</phpunit>
|