mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
MINOR: Added phpunit config specifically for teamcity (different listeners)
This commit is contained in:
parent
aae4f9e749
commit
792df1e249
44
phpunit.teamcity.xml
Normal file
44
phpunit.teamcity.xml
Normal file
@ -0,0 +1,44 @@
|
||||
<!--
|
||||
PHPUnit configuration for SilverStripe
|
||||
|
||||
Requires PHPUnit 3.6+
|
||||
|
||||
Usage:
|
||||
- "phpunit": Runs all tests in all folders
|
||||
- "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
|
||||
- "phpunit <dash><dash>coverage-html assets/": Generate coverage report (replace <dash> with "-", requires xdebug)
|
||||
|
||||
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.
|
||||
- framework/dev/TestRunner.php for an alternative way to run unit tests through the "sake" CLI tool.
|
||||
-->
|
||||
<phpunit bootstrap="framework/tests/bootstrap.php" colors="true">
|
||||
<testsuite name="Default">
|
||||
<directory>./</directory>
|
||||
<exclude>framework/thirdparty/</exclude>
|
||||
</testsuite>
|
||||
|
||||
<filter>
|
||||
<blacklist>
|
||||
<directory suffix=".php">framework/dev/</directory>
|
||||
<directory suffix=".php">framework/thirdparty/</directory>
|
||||
<directory suffix=".php">cms/thirdparty/</directory>
|
||||
<file>framework/tests/PhpSyntaxTest.php</file>
|
||||
</blacklist>
|
||||
</filter>
|
||||
|
||||
<listeners>
|
||||
<listener class="SS_TestListener" file="framework/dev/TestListener.php" />
|
||||
<listener class="TeamCityListener" file="framework/dev/TeamCityListener.php"/>
|
||||
</listeners>
|
||||
|
||||
<groups>
|
||||
<exclude>
|
||||
<group>sanitychecks</group>
|
||||
</exclude>
|
||||
</groups>
|
||||
</phpunit>
|
@ -32,8 +32,7 @@
|
||||
</filter>
|
||||
|
||||
<listeners>
|
||||
<listener class="SS_TestListener" file="framework/dev/TestListener.php">
|
||||
</listener>
|
||||
<listener class="SS_TestListener" file="framework/dev/TestListener.php" />
|
||||
</listeners>
|
||||
|
||||
<groups>
|
||||
|
Loading…
Reference in New Issue
Block a user