|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + bootstrap="vendor/codeigniter4/codeigniter4/system/Test/bootstrap.php" |
| 4 | + backupGlobals="false" |
| 5 | + colors="true" |
| 6 | + convertErrorsToExceptions="true" |
| 7 | + convertNoticesToExceptions="true" |
| 8 | + convertWarningsToExceptions="true" |
| 9 | + stopOnError="false" |
| 10 | + stopOnFailure="false" |
| 11 | + stopOnIncomplete="false" |
| 12 | + stopOnSkipped="false" |
| 13 | + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> |
| 14 | + |
| 15 | + <coverage includeUncoveredFiles="true" processUncoveredFiles="true"> |
| 16 | + <include> |
| 17 | + <directory suffix=".php">./src</directory> |
| 18 | + </include> |
| 19 | + <exclude> |
| 20 | + <directory suffix=".php">./src/Views</directory> |
| 21 | + <file>./src/Config/Routes.php</file> |
| 22 | + </exclude> |
| 23 | + <report> |
| 24 | + <clover outputFile="build/logs/clover.xml"/> |
| 25 | + <html outputDirectory="build/logs/html"/> |
| 26 | + <php outputFile="build/logs/coverage.serialized"/> |
| 27 | + <text outputFile="php://stdout" showUncoveredFiles="false"/> |
| 28 | + </report> |
| 29 | + </coverage> |
| 30 | + |
| 31 | + <testsuites> |
| 32 | + <testsuite name="app"> |
| 33 | + <directory>./tests</directory> |
| 34 | + </testsuite> |
| 35 | + </testsuites> |
| 36 | + |
| 37 | + <logging> |
| 38 | + <testdoxHtml outputFile="build/logs/testdox.html"/> |
| 39 | + <testdoxText outputFile="build/logs/testdox.txt"/> |
| 40 | + <junit outputFile="build/logs/logfile.xml"/> |
| 41 | + </logging> |
| 42 | + |
| 43 | + <php> |
| 44 | + <env name="XDEBUG_MODE" value="coverage"/> |
| 45 | + <server name="app.baseURL" value="http://example.com"/> |
| 46 | + |
| 47 | + <!-- Directory containing phpunit.xml --> |
| 48 | + <const name="HOMEPATH" value="./"/> |
| 49 | + |
| 50 | + <!-- Directory containing the Paths config file --> |
| 51 | + <const name="CONFIGPATH" value="./vendor/codeigniter4/codeigniter4/app/Config/"/> |
| 52 | + |
| 53 | + <!-- Directory containing the front controller (index.php) --> |
| 54 | + <const name="PUBLICPATH" value="./vendor/codeigniter4/codeigniter4/public/"/> |
| 55 | + |
| 56 | + <!-- https://getcomposer.org/xdebug --> |
| 57 | + <env name="COMPOSER_DISABLE_XDEBUG_WARN" value="1"/> |
| 58 | + |
| 59 | + <!-- Database configuration --> |
| 60 | + <!-- Uncomment to use alternate testing database configuration |
| 61 | + <env name="database.tests.hostname" value="localhost"/> |
| 62 | + <env name="database.tests.database" value="tests"/> |
| 63 | + <env name="database.tests.username" value="tests_user"/> |
| 64 | + <env name="database.tests.password" value=""/> |
| 65 | + <env name="database.tests.DBDriver" value="MySQLi"/> |
| 66 | + <env name="database.tests.DBPrefix" value="tests_"/> |
| 67 | + --> |
| 68 | + </php> |
| 69 | +</phpunit> |
0 commit comments