summaryrefslogtreecommitdiffstats
path: root/tests/phpunit.xml.dist
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2013-06-27 16:31:31 +0200
committerAndreas Fischer <bantu@owncloud.com>2013-06-27 16:31:31 +0200
commit121e4ca395f05b6dff8903650a71a95cd4a3a229 (patch)
tree0a922856ea26bccf46d88842cdf2e07e8a9214d7 /tests/phpunit.xml.dist
parentaa7403500fdbc76b9e63b0de1553e1a4f61a4cf2 (diff)
downloadnextcloud-server-121e4ca395f05b6dff8903650a71a95cd4a3a229.tar.gz
nextcloud-server-121e4ca395f05b6dff8903650a71a95cd4a3a229.zip
PHPUnit: Allow developers to use their own custom phpunit.xml file.
The order of precedence of configuration files for PHPUnit is: - phpunit.xml (allowing custom user defined configuration) - phpunit.xml.dist (configuration distributed with the software)
Diffstat (limited to 'tests/phpunit.xml.dist')
-rw-r--r--tests/phpunit.xml.dist18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/phpunit.xml.dist b/tests/phpunit.xml.dist
new file mode 100644
index 00000000000..25dfc64cfeb
--- /dev/null
+++ b/tests/phpunit.xml.dist
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<phpunit bootstrap="bootstrap.php">
+ <testsuite name='ownCloud'>
+ <directory suffix='.php'>lib/</directory>
+ <file>apps.php</file>
+ </testsuite>
+ <!-- filters for code coverage -->
+ <filter>
+ <!-- whitelist processUncoveredFilesFromWhitelist="true" -->
+ <whitelist>
+ <directory suffix=".php">..</directory>
+ <exclude>
+ <directory suffix=".php">../3rdparty</directory>
+ <directory suffix=".php">../lib/MDB2</directory>
+ </exclude>
+ </whitelist>
+ </filter>
+</phpunit>