tarlepp/symfony-flex-backend

View on GitHub
phpunit.fastest.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>

<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.4/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         testdox="true"
         beStrictAboutTodoAnnotatedTests="true"
         beStrictAboutTestsThatDoNotTestAnything="true"
         beStrictAboutOutputDuringTests="true"
         bootstrap="tests/bootstrap.php"
>
    <php>
        <ini name="error_reporting" value="-1" />
        <ini name="display_errors" value="On" />
        <ini name="display_startup_errors" value="On" />
        <ini name="date.timezone" value="UTC" />

        <env name="KERNEL_CLASS" value="App\Kernel" />
        <env name="SHELL_VERBOSITY" value="-1" />
        <env name="APP_ENV" value="test" force="true" />
        <env name="APP_DEBUG" value="0" />
        <env name="APP_SECRET" value="93b60d4136baea83cf3821ee6a0a2adb" />

        <!--
            To make sure that application has no "direct" deprecations we use `max[direct]=0` as a default one
            indirect deprecations are just shown on test output to help to track those.

            Note that you can change this behaviour if you want to, just see following documentation and see
            how you can configure that.

            https://symfony.com/doc/current/components/phpunit_bridge.html#direct-and-indirect-deprecations
        -->
        <env name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=1" />
    </php>

    <listeners>
        <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
    </listeners>

    <testsuites>
        <testsuite name="E2E">
            <directory>./tests/E2E/</directory>
        </testsuite>
        <testsuite name="Functional">
            <directory>./tests/Functional/</directory>
        </testsuite>
        <testsuite name="Integration">
            <directory>./tests/Integration/</directory>
        </testsuite>
        <testsuite name="Unit">
            <directory>./tests/Unit/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./src</directory>
            <exclude>
                <directory>./src/Command</directory>
                <directory>./src/DataFixtures</directory>
                <directory>./src/Migrations</directory>
                <file>./src/Kernel.php</file>
            </exclude>
        </whitelist>
    </filter>
</phpunit>