- Introduced Pest testing framework with basic test cases. - Created TestCase and ExampleTest for unit testing. - Updated phpunit.xml for improved test configuration.
41 lines
1.5 KiB
XML
41 lines
1.5 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/13.4/phpunit.xsd"
|
|
bootstrap="vendor/autoload.php"
|
|
backupGlobals="false"
|
|
colors="true"
|
|
processIsolation="false"
|
|
stopOnFailure="false"
|
|
executionOrder="random"
|
|
failOnWarning="true"
|
|
failOnRisky="true"
|
|
failOnEmptyTestSuite="false"
|
|
beStrictAboutOutputDuringTests="true"
|
|
cacheDirectory=".phpunit.cache">
|
|
<testsuites>
|
|
<testsuite name="Feature Test Suite">
|
|
<directory suffix="Test.php">./tests/Feature</directory>
|
|
</testsuite>
|
|
<testsuite name="Integration Test Suite">
|
|
<directory suffix="Test.php">./tests/Integration</directory>
|
|
</testsuite>
|
|
<testsuite name="Unit Test Suite">
|
|
<directory suffix="Test.php">./tests/Unit</directory>
|
|
</testsuite>
|
|
</testsuites>
|
|
<source>
|
|
<include>
|
|
<directory suffix=".php">./src</directory>
|
|
</include>
|
|
<exclude>
|
|
<file>./src/StorageServiceProvider.php</file>
|
|
</exclude>
|
|
</source>
|
|
<php>
|
|
<env name="APP_ENV" value="testing"/>
|
|
<env name="APP_KEY" value="base64:6Cu/ozUs8DpKDquFeVu+dVAvuhVmZvOqYo8CXIG5SO8="/>
|
|
<env name="CACHE_STORE" value="array"/>
|
|
<env name="DB_CONNECTION" value="sqlite"/>
|
|
<env name="DB_DATABASE" value=":memory:"/>
|
|
</php>
|
|
</phpunit>
|