ENHANCEMENT Added phpunit.xml.dist to avoid setting bootstrap includes and other SilverStripe specific configuration as CLI parameters and test-level includes (from r111055)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112422 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
sminnee 2010-10-15 01:20:45 +00:00
parent 5a20fbed64
commit ec9ea4c8d6
1 changed files with 38 additions and 0 deletions

38
phpunit.xml.dist Normal file
View File

@ -0,0 +1,38 @@
<!--
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)
See http://www.phpunit.de/manual/current/en/textui.html for more commandline options.
Note: Doesn't regard _manifest_exclude flags in folders.
Customize these settings by creating your own "phpunit.xml".
See sapphire/dev/TestRunner.php for an alternative way to run unit tests
through the "sake" CLI tool.
-->
<phpunit
bootstrap="/sapphire/tests/bootstrap.php"
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>
</phpunit>