laravel-jenkins-test/phpunit.xml
2020-02-04 15:28:57 +01:00

46 lines
2.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/4.1/phpunit.xsd"
bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutTodoAnnotatedTests="true"
forceCoversAnnotation="true"
verbose="true">
<testsuites>
<testsuite name="Unit Tests">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
</testsuites>
<logging>
<log type="coverage-html" target="build/coverage"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
<log type="coverage-crap4j" target="build/logs/crap4j.xml"/>
<log type="coverage-xml" target="build/logs/coverage"/>
<log type="junit" target="build/logs/junit.xml"/>
<log type="testdox-html" target="build/testdox/index.html"/>
</logging>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./app/Http/Composers</directory>
<directory suffix=".php">./app/Http/Controllers</directory>
<directory suffix=".php">./app/Http/Middleware</directory>
<directory suffix=".php">./app/Http/Requests</directory>
<directory suffix=".php">./app/Http/Resources</directory>
<directory suffix=".php">./app/Http/Utilities</directory>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
<env name="SCOUT_DRIVER" value="null"/>
<env name="TELESCOPE_ENABLED" value="false"/>
</php>
</phpunit>