mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 15:05:50 +00:00
Updated PHPUnit default file
This commit is contained in:
parent
2929fd8390
commit
926801e97d
@ -1,37 +1,29 @@
|
|||||||
<!--
|
<!--
|
||||||
|
PHPUnit configuration for SilverStripe
|
||||||
|
|
||||||
|
Requires PHPUnit 3.5+
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
- "phpunit": Runs all tests in all folders
|
- "phpunit": Runs all tests in all folders
|
||||||
- "phpunit sapphire/tests/": Run all tests of the sapphire module
|
- "phpunit framework/tests/": Run all tests of the framework module
|
||||||
- "phpunit sapphire/tests/filesystem": Run all filesystem tests within the sapphire module
|
- "phpunit framework/tests/filesystem": Run all filesystem tests within the framework module
|
||||||
- "phpunit sapphire/tests/filesystem/FolderTest.php": Run a single test
|
- "phpunit framework/tests/filesystem/FolderTest.php": Run a single test
|
||||||
- "phpunit <dash><dash>coverage-html assets/": Generate coverage report (replace <dash> with "-", requires xdebug)
|
- "phpunit <dash><dash>coverage-html assets/": Generate coverage report (replace <dash> with "-", requires xdebug)
|
||||||
|
|
||||||
Further information:
|
More information:
|
||||||
- http://www.phpunit.de/manual/current/en/textui.html for more commandline options.
|
- http://www.phpunit.de/manual/current/en/textui.html
|
||||||
- http://github.com/chillu/silverstripe-doc-restructuring/blob/master/master/cms/docs/en/howto/phpunit-configuration.md
|
- http://doc.silverstripe.org/framework/en/topics/testing/#configuration
|
||||||
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.
|
|
||||||
-->
|
-->
|
||||||
<phpunit
|
<phpunit bootstrap="framework/tests/bootstrap.php" colors="true">
|
||||||
bootstrap="/sapphire/tests/bootstrap.php"
|
|
||||||
colors="true"
|
|
||||||
>
|
|
||||||
<testsuite name="Default">
|
<testsuite name="Default">
|
||||||
<directory>./</directory>
|
<directory>mysite/tests</directory>
|
||||||
|
<directory>cms/tests</directory>
|
||||||
|
<directory>framework/tests</directory>
|
||||||
</testsuite>
|
</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>
|
<listeners>
|
||||||
<listener class="SS_TestListener" file="sapphire/dev/TestListener.php">
|
<listener class="SS_TestListener" file="framework/dev/TestListener.php" />
|
||||||
</listener>
|
|
||||||
</listeners>
|
</listeners>
|
||||||
|
|
||||||
<groups>
|
<groups>
|
||||||
@ -39,5 +31,4 @@
|
|||||||
<group>sanitychecks</group>
|
<group>sanitychecks</group>
|
||||||
</exclude>
|
</exclude>
|
||||||
</groups>
|
</groups>
|
||||||
|
|
||||||
</phpunit>
|
</phpunit>
|
Loading…
x
Reference in New Issue
Block a user