]> source.dussan.org Git - nextcloud-server.git/commitdiff
add phpunit configuration for autotest withou the json listener because this pollutes...
authorThomas Mueller <thomas.mueller@tmit.eu>
Tue, 5 Feb 2013 19:20:55 +0000 (20:20 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Tue, 5 Feb 2013 19:20:55 +0000 (20:20 +0100)
autotest.sh
tests/phpunit-autotest.xml [new file with mode: 0644]

index 744bcdbe8f9628b6b98326569e54669e865f5e9c..fdf6d2fe098267dd414acd4b573f0b8fd5385d02 100755 (executable)
@@ -90,7 +90,7 @@ function execute_tests {
        rm -rf coverage-html-$1
        mkdir coverage-html-$1
        php -f enable_all.php
-       phpunit --log-junit autotest-results-$1.xml --coverage-clover autotest-clover-$1.xml --coverage-html coverage-html-$1
+       phpunit --configuration phpunit-autotest.xml --log-junit autotest-results-$1.xml --coverage-clover autotest-clover-$1.xml --coverage-html coverage-html-$1
 }
 
 #
diff --git a/tests/phpunit-autotest.xml b/tests/phpunit-autotest.xml
new file mode 100644 (file)
index 0000000..23cd123
--- /dev/null
@@ -0,0 +1,14 @@
+<?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 -->
+       <whitelist processUncoveredFilesFromWhitelist="true">
+               <directory suffix=".php">..</directory>
+               <exclude>
+                       <directory suffix=".php">../3rdparty</directory>
+               </exclude>
+       </whitelist>
+</phpunit>