OXDEV-338 Add phpunit config for possibility to generate coverage

This commit is contained in:
Anton Fedurtsya 2017-11-09 16:48:24 +02:00
parent 11553919a6
commit 112aded810
1 changed files with 30 additions and 0 deletions

30
tests/phpunit.xml Normal file
View File

@ -0,0 +1,30 @@
<phpunit backupGlobals="true"
backupStaticAttributes="false"
bootstrap="bootstrap.php"
cacheTokens="true"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
forceCoversAnnotation="false"
mapTestClassNameToCoveredClassName="false"
printerClass="PHPUnit_TextUI_ResultPrinter"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
verbose="false">
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">../</directory>
<exclude>
<directory suffix=".php">../tests</directory>
<directory suffix=".php">../translations</directory>
<directory suffix=".php">../views</directory>
<file>../metadata.php</file>
</exclude>
</whitelist>
</filter>
</phpunit>