|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<phpunit |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.4/phpunit.xsd" |
| 5 | + bootstrap="vendor/autoload.php" |
| 6 | + cacheDirectory=".phpunit.cache" |
| 7 | + colors="true" |
| 8 | + executionOrder="random" |
| 9 | + beStrictAboutTestsThatDoNotTestAnything="true" |
| 10 | + beStrictAboutOutputDuringTests="true" |
| 11 | + failOnWarning="true" |
| 12 | + failOnRisky="true" |
| 13 | + failOnIncomplete="true" |
| 14 | + failOnSkipped="false" |
| 15 | +> |
| 16 | + |
| 17 | + <testsuites> |
| 18 | + <testsuite name="Unit Tests"> |
| 19 | + <directory suffix="Test.php">tests/Unit</directory> |
| 20 | + </testsuite> |
| 21 | + <testsuite name="Integration Tests"> |
| 22 | + <directory suffix="Test.php">tests/Integration</directory> |
| 23 | + </testsuite> |
| 24 | + </testsuites> |
| 25 | + |
| 26 | + <!-- Code Coverage (ativa se houver driver disponível) --> |
| 27 | + <coverage> |
| 28 | + <include> |
| 29 | + <directory suffix=".php">src</directory> |
| 30 | + </include> |
| 31 | + <exclude> |
| 32 | + <directory>vendor</directory> |
| 33 | + <directory>devkit</directory> |
| 34 | + <directory>tests</directory> |
| 35 | + </exclude> |
| 36 | + <report> |
| 37 | + <clover outputFile="build/coverage/clover.xml"/> |
| 38 | + <html outputDirectory="build/coverage/html"/> |
| 39 | + <text outputFile="php://stdout" showUncoveredFiles="false"/> |
| 40 | + </report> |
| 41 | + </coverage> |
| 42 | + |
| 43 | + <logging> |
| 44 | + <junit outputFile="build/junit.xml"/> |
| 45 | + <testdoxText outputFile="build/testdox.txt"/> |
| 46 | + </logging> |
| 47 | + |
| 48 | + <php> |
| 49 | + <env name="APP_ENV" value="testing"/> |
| 50 | + <env name="XDEBUG_MODE" value="coverage"/> |
| 51 | + <ini name="zend.assertions" value="1"/> |
| 52 | + <ini name="assert.exception" value="1"/> |
| 53 | + <ini name="memory_limit" value="512M"/> |
| 54 | + </php> |
| 55 | + |
| 56 | +</phpunit> |
0 commit comments