Browse Source

add phpunit configuration for autotest withou the json listener because this pollutes the console

tags/v5.0.0alpha1
Thomas Mueller 11 years ago
parent
commit
c0263173d2
2 changed files with 15 additions and 1 deletions
  1. 1
    1
      autotest.sh
  2. 14
    0
      tests/phpunit-autotest.xml

+ 1
- 1
autotest.sh View File

@@ -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
}

#

+ 14
- 0
tests/phpunit-autotest.xml View File

@@ -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>

Loading…
Cancel
Save