Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Added phpunit.xml.dist

git-svn-id: http://svn.silverstripe.com/projects/ss2doc/branches/v2@115397 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit 2c7723fb423aa1012e3e6c3b7046949125426454 1 parent 2440202
Ingo Schommer chillu authored
Showing with 43 additions and 0 deletions.
  1. +43 −0 phpunit.xml.dist
43 phpunit.xml.dist
View
@@ -0,0 +1,43 @@
+<!--
+ 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)
+
+ 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.
+-->
+<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>
+
+ <groups>
+ <exclude>
+ <group>sanitychecks</group>
+ </exclude>
+ </groups>
+
+</phpunit>
Please sign in to comment.
Something went wrong with that request. Please try again.