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)
|
|
|
|
|
2010-10-15 03:21:58 +02:00
|
|
|
Further information:
|
|
|
|
- http://www.phpunit.de/manual/current/en/textui.html for more commandline options.
|
|
|
|
- http://github.com/chillu/silverstripe-doc-restructuring/blob/master/master/cms/docs/en/howto/phpunit-configuration.md
|
|
|
|
for more information on configuration and execution options.
|
2012-04-12 11:15:32 +02:00
|
|
|
- framework/dev/TestRunner.php for an alternative way to run unit tests through the "sake" CLI tool.
|
2010-10-15 03:20:45 +02:00
|
|
|
-->
|
2012-05-28 08:20:46 +02:00
|
|
|
<phpunit bootstrap="framework/tests/bootstrap.php" colors="true" backupGlobals="false" backupStaticAttributes="false" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" syntaxCheck="false" verbose="true" strict="true">
|
|
|
|
|
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>
|
2012-05-09 12:33:22 +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>
|