60 lines
2.3 KiB
XML
60 lines
2.3 KiB
XML
<?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>
|
|
<testsuite name="Unit">
|
|
<directory>tests/Unit</directory>
|
|
</testsuite>
|
|
<testsuite name="Feature">
|
|
<directory>tests/Feature</directory>
|
|
</testsuite>
|
|
<!-- Browser tests need a built frontend and Playwright, so they are opt in.
|
|
Run "npm run build", then pest with the Browser testsuite. -->
|
|
<testsuite name="Browser">
|
|
<directory>tests/Browser</directory>
|
|
</testsuite>
|
|
<!-- Screenshot capture and pixel diffing. Opt in with "composer test:visual". -->
|
|
<testsuite name="Visual">
|
|
<directory>tests/Visual</directory>
|
|
</testsuite>
|
|
</testsuites>
|
|
<groups>
|
|
<!-- Browser tests need Playwright and a built frontend, so they stay out of
|
|
the default run. Pass the browser group explicitly to run them. -->
|
|
<exclude>
|
|
<group>browser</group>
|
|
<group>visual</group>
|
|
</exclude>
|
|
</groups>
|
|
<source>
|
|
<include>
|
|
<directory>app</directory>
|
|
</include>
|
|
</source>
|
|
<php>
|
|
<ini name="memory_limit" value="512M"/>
|
|
<env name="APP_ENV" value="testing"/>
|
|
<env name="EXPOSE_API" value="true"/>
|
|
<env name="APP_MAINTENANCE_DRIVER" value="file"/>
|
|
<env name="BCRYPT_ROUNDS" value="4"/>
|
|
<env name="CACHE_STORE" value="array"/>
|
|
<env name="DB_CONNECTION" value="sqlite_memory"/>
|
|
<!-- Pinned off so the suite does not change meaning on the demo deployment,
|
|
where .env carries DEMO_MODE=true. Tests that need it turn it on with
|
|
config(['demo.enabled' => true]). Written "(false)" because PHPUnit
|
|
parses a bare "false" into a boolean and then puts the empty string in
|
|
the environment; Laravel maps both spellings to false. -->
|
|
<env name="DEMO_MODE" value="(false)"/>
|
|
<env name="MAIL_MAILER" value="array"/>
|
|
<env name="QUEUE_CONNECTION" value="sync"/>
|
|
<env name="SESSION_DRIVER" value="array"/>
|
|
<env name="PULSE_ENABLED" value="false"/>
|
|
<env name="TELESCOPE_ENABLED" value="false"/>
|
|
<env name="NIGHTWATCH_ENABLED" value="false"/>
|
|
<env name="SETTINGS_STORE" value="memory"/>
|
|
</php>
|
|
</phpunit>
|