2010-09-21 22:29:26 +02:00
|
|
|
<!--
|
|
|
|
Usage:
|
|
|
|
- "phpunit": Runs all tests in all folders
|
|
|
|
- "phpunit sapphire/tests/": Run all tests of the sapphire module
|
|
|
|
- "phpunit sapphire/tests/filesystem": Run all filesystem tests within the sapphire module
|
|
|
|
- "phpunit sapphire/tests/filesystem/FolderTest.php": Run a single test
|
|
|
|
- "phpunit <dash><dash>coverage-html assets/": Generate coverage report (replace <dash> with "-", requires xdebug)
|
|
|
|
|
2010-10-02 07:31:18 +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.
|
|
|
|
- sapphire/dev/TestRunner.php for an alternative way to run unit tests through the "sake" CLI tool.
|
2010-09-21 22:29:26 +02:00
|
|
|
-->
|
|
|
|
<phpunit
|
2012-11-09 11:48:34 +01:00
|
|
|
bootstrap="sapphire/tests/bootstrap.php"
|
2010-09-21 22:29:26 +02:00
|
|
|
colors="true"
|
|
|
|
>
|
|
|
|
<testsuite name="Default">
|
|
|
|
<directory>./</directory>
|
|
|
|
</testsuite>
|
|
|
|
|
|
|
|
<filter>
|
|
|
|
<blacklist>
|
|
|
|
<directory suffix=".php">sapphire/dev/</directory>
|
|
|
|
<directory suffix=".php">sapphire/thirdparty/</directory>
|
|
|
|
<directory suffix=".php">cms/thirdparty/</directory>
|
|
|
|
<file>sapphire/tests/PhpSyntaxTest.php</file>
|
|
|
|
</blacklist>
|
|
|
|
</filter>
|
|
|
|
|
|
|
|
<listeners>
|
|
|
|
<listener class="SS_TestListener" file="sapphire/dev/TestListener.php">
|
|
|
|
</listener>
|
|
|
|
</listeners>
|
2010-09-22 07:06:10 +02:00
|
|
|
|
|
|
|
<groups>
|
|
|
|
<exclude>
|
|
|
|
<group>sanitychecks</group>
|
|
|
|
</exclude>
|
|
|
|
</groups>
|
|
|
|
|
2010-09-21 22:29:26 +02:00
|
|
|
</phpunit>
|