<?xml version="1.0" encoding="UTF-8"?>
<phpunit
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
    bootstrap="vendor/autoload.php"
    colors="true"
>
    <testsuites>
        <!-- Admin package testsuites. -->
        <testsuite name="Admin Feature Test">
            <directory suffix="Test.php">packages/Webkul/Admin/tests/Feature</directory>
        </testsuite>

        <!-- Core package testsuites. -->
        <testsuite name="Core Unit Test">
            <directory suffix="Test.php">packages/Webkul/Core/tests/Unit</directory>
        </testsuite>

        <!-- Customer package testsuites. -->
        <testsuite name="Customer Unit Test">
            <directory suffix="Test.php">packages/Webkul/Customer/tests/Unit</directory>
        </testsuite>

        <!-- DataGrid package testsuites. -->
        <testsuite name="DataGrid Unit Test">
            <directory suffix="Test.php">packages/Webkul/DataGrid/tests/Unit</directory>
        </testsuite>

        <!-- EUWithdrawal package testsuites. -->
        <testsuite name="EUWithdrawal Feature Test">
            <directory suffix="Test.php">packages/Webkul/EUWithdrawal/tests/Feature</directory>
        </testsuite>

        <!-- Installer package testsuites. -->
        <testsuite name="Installer Feature Test">
            <directory suffix="Test.php">packages/Webkul/Installer/tests/Feature</directory>
        </testsuite>

        <!-- PayGlocal package testsuites. -->
        <testsuite name="PayGlocal Unit Test">
            <directory suffix="Test.php">packages/Webkul/PayGlocal/tests/Unit</directory>
        </testsuite>

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

        <!-- PayU package testsuites. -->
        <testsuite name="PayU Unit Test">
            <directory suffix="Test.php">packages/Webkul/PayU/tests/Unit</directory>
        </testsuite>

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

        <!-- Razorpay package testsuites. -->
        <testsuite name="Razorpay Unit Test">
            <directory suffix="Test.php">packages/Webkul/Razorpay/tests/Unit</directory>
        </testsuite>

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

        <!-- Shop package testsuites. -->
        <testsuite name="Shop Feature Test">
            <directory suffix="Test.php">packages/Webkul/Shop/tests/Feature</directory>
        </testsuite>

        <!-- Stripe package testsuites. -->
        <testsuite name="Stripe Unit Test">
            <directory suffix="Test.php">packages/Webkul/Stripe/tests/Unit</directory>
        </testsuite>

        <testsuite name="Stripe Feature Test">
            <directory suffix="Test.php">packages/Webkul/Stripe/tests/Feature</directory>
        </testsuite>
    </testsuites>

    <source>
        <include>
            <directory>app</directory>

            <directory>packages</directory>
        </include>
    </source>

    <php>
        <env name="APP_ENV" value="testing"/>
        <env name="APP_MAINTENANCE_DRIVER" value="file"/>
        <env name="BCRYPT_ROUNDS" value="4"/>
        <env name="CACHE_STORE" value="array"/>
        <env name="MAIL_MAILER" value="array"/>
        <env name="PULSE_ENABLED" value="false"/>
        <env name="QUEUE_CONNECTION" value="sync"/>
        <env name="SESSION_DRIVER" value="array"/>
        <env name="TELESCOPE_ENABLED" value="false"/>
    </php>
</phpunit>
