ozimos/LMS_Music

View on GitHub
phpunit.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="vendor/autoload.php"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         printerClass="Codedungeon\PHPUnitPrettyResultPrinter\Printer">
    <testsuites>
        <testsuite name="Unit">
            <directory suffix="Test.php">./tests/Unit</directory>
        </testsuite>

        <testsuite name="Feature">
            <directory suffix="Test.php">./tests/Feature</directory>
        </testsuite>

        <testsuite name="Failure">
            <directory suffix="Test.php">./tests/Failure</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./app</directory>
            <exclude>
                <directory suffix=".php">./app/Http/Controllers/Auth/</directory>
                <directory suffix=".php">./app/Http/Middleware/</directory>
                <directory suffix=".php">./app/Models/</directory>
                <file>./app/User.php</file>
                <directory suffix=".php">./app/Http/Requests/</directory>
                <directory suffix=".php">./app/Contracts/Repositories</directory>
                <directory suffix=".php">./app/Repositories/</directory>
                <file>./app/Http/Kernel.php</file>
                <file>./app/Console/Kernel.php</file>
                <file >./app/Exceptions/Handler.php</file>
                <directory suffix=".php">./app/Providers/</directory>
                <directory suffix=".php">./app/Mail/</directory>
            </exclude>
        </whitelist>
    </filter>
    <logging>
        <log type="coverage-html" target="./build"
            lowUpperBound="50" highLowerBound="80" />
    </logging>
    <php>
        <env name="APP_ENV" value="testing"/>
        <env name="BCRYPT_ROUNDS" value="4"/>
        <env name="CACHE_DRIVER" value="array"/>
        <env name="SESSION_DRIVER" value="array"/>
        <env name="MAIL_DRIVER" value="array"/>
        <env name="DB_CONNECTION" value="sqlite"/>         
        <env name="DB_DATABASE" value=":memory:"/>  
        <env name="QUEUE_CONNECTION" value="sync"/>
    </php>
</phpunit>