summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-11-04 15:43:27 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-11-06 19:11:29 +0100
commit71b8916f0f271c2b302eabcd71d05bc626a16230 (patch)
treedfd913a2e075e01c9e9d2026b855fd76e051ab2a /apps
parent20e37bd38f8e1291079f3d006f6e369d826a4463 (diff)
downloadnextcloud-server-71b8916f0f271c2b302eabcd71d05bc626a16230.tar.gz
nextcloud-server-71b8916f0f271c2b302eabcd71d05bc626a16230.zip
adding individual phpunit.xml and bootstrap.php
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/tests/unit/bootstrap.php13
-rw-r--r--apps/dav/tests/unit/phpunit.xml25
2 files changed, 38 insertions, 0 deletions
diff --git a/apps/dav/tests/unit/bootstrap.php b/apps/dav/tests/unit/bootstrap.php
new file mode 100644
index 00000000000..28f6b971dec
--- /dev/null
+++ b/apps/dav/tests/unit/bootstrap.php
@@ -0,0 +1,13 @@
+<?php
+
+define('PHPUNIT_RUN', 1);
+
+require_once __DIR__.'/../../../../lib/base.php';
+
+if(!class_exists('PHPUnit_Framework_TestCase')) {
+ require_once('PHPUnit/Autoload.php');
+}
+
+\OC_App::loadApp('dav');
+
+OC_Hook::clear();
diff --git a/apps/dav/tests/unit/phpunit.xml b/apps/dav/tests/unit/phpunit.xml
new file mode 100644
index 00000000000..46c3cdfb345
--- /dev/null
+++ b/apps/dav/tests/unit/phpunit.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<phpunit bootstrap="bootstrap.php"
+ verbose="true"
+ timeoutForSmallTests="900"
+ timeoutForMediumTests="900"
+ timeoutForLargeTests="900"
+ >
+ <testsuite name='unit'>
+ <directory suffix='test.php'>.</directory>
+ </testsuite>
+ <!-- filters for code coverage -->
+ <filter>
+ <whitelist>
+ <directory suffix=".php">../../dav</directory>
+ <exclude>
+ <directory suffix=".php">../../dav/tests</directory>
+ </exclude>
+ </whitelist>
+ </filter>
+ <logging>
+ <!-- and this is where your report will be written -->
+ <log type="coverage-clover" target="./clover.xml"/>
+ </logging>
+</phpunit>
+