|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 |
| -<phpunit bootstrap="vendor/codeigniter4/codeigniter4/system/Test/bootstrap.php" |
| 2 | +<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + bootstrap="vendor/codeigniter4/codeigniter4/system/Test/bootstrap.php" |
3 | 4 | backupGlobals="false"
|
4 | 5 | colors="true"
|
5 | 6 | convertErrorsToExceptions="true"
|
|
8 | 9 | stopOnError="false"
|
9 | 10 | stopOnFailure="false"
|
10 | 11 | stopOnIncomplete="false"
|
11 |
| - stopOnSkipped="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 | + |
12 | 31 | <testsuites>
|
13 | 32 | <testsuite name="app">
|
14 | 33 | <directory>./tests</directory>
|
15 | 34 | </testsuite>
|
16 | 35 | </testsuites>
|
17 | 36 |
|
18 |
| - <filter> |
19 |
| - <whitelist addUncoveredFilesFromWhitelist="true" processUncoveredFilesFromWhitelist="true"> |
20 |
| - <directory suffix=".php">./src</directory> |
21 |
| - <exclude> |
22 |
| - <directory suffix=".php">./src/Views</directory> |
23 |
| - <file>./src/Config/Routes.php</file> |
24 |
| - </exclude> |
25 |
| - </whitelist> |
26 |
| - </filter> |
27 |
| - |
28 | 37 | <logging>
|
29 |
| - <log type="coverage-html" target="build/logs/html"/> |
30 |
| - <log type="coverage-clover" target="build/logs/clover.xml"/> |
31 |
| - <log type="coverage-php" target="build/logs/coverage.serialized"/> |
32 |
| - <log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/> |
33 |
| - <log type="testdox-html" target="build/logs/testdox.html"/> |
34 |
| - <log type="testdox-text" target="build/logs/testdox.txt"/> |
35 |
| - <log type="junit" target="build/logs/logfile.xml"/> |
| 38 | + <testdoxHtml outputFile="build/logs/testdox.html"/> |
| 39 | + <testdoxText outputFile="build/logs/testdox.txt"/> |
| 40 | + <junit outputFile="build/logs/logfile.xml"/> |
36 | 41 | </logging>
|
37 | 42 |
|
38 | 43 | <php>
|
| 44 | + <env name="XDEBUG_MODE" value="coverage"/> |
39 | 45 | <server name="app.baseURL" value="http://example.com"/>
|
40 | 46 |
|
41 | 47 | <!-- Directory containing phpunit.xml -->
|
|
47 | 53 | <!-- Directory containing the front controller (index.php) -->
|
48 | 54 | <const name="PUBLICPATH" value="./vendor/codeigniter4/codeigniter4/public/"/>
|
49 | 55 |
|
50 |
| -<!-- <env name="database.tests.hostname" value="localhost"/> --> |
51 |
| -<!-- <env name="database.tests.database" value="tests"/> --> |
52 |
| -<!-- <env name="database.tests.username" value="tests_user"/> --> |
53 |
| -<!-- <env name="database.tests.password" value=""/> --> |
54 |
| -<!-- <env name="database.tests.DBDriver" value="MySQLi"/> --> |
55 |
| -<!-- <env name="database.tests.DBPrefix" value="tests_"/> --> |
56 |
| - <env name="database.tests.database" value=":memory:"/> |
57 |
| - <env name="database.tests.DBDriver" value="SQLite3"/> |
| 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 | + --> |
58 | 68 | </php>
|
59 | 69 | </phpunit>
|
0 commit comments