|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 |
| -<phpunit bootstrap="vendor/codeigniter4/framework/system/Test/bootstrap.php" |
| 2 | +<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + bootstrap="vendor/codeigniter4/framework/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 | + <coverage includeUncoveredFiles="true" processUncoveredFiles="true"> |
| 15 | + <include> |
| 16 | + <directory suffix=".php">./app</directory> |
| 17 | + </include> |
| 18 | + <exclude> |
| 19 | + <directory suffix=".php">./app/Views</directory> |
| 20 | + <file>./app/Config/Routes.php</file> |
| 21 | + </exclude> |
| 22 | + <report> |
| 23 | + <clover outputFile="build/logs/clover.xml"/> |
| 24 | + <html outputDirectory="build/logs/html"/> |
| 25 | + <php outputFile="build/logs/coverage.serialized"/> |
| 26 | + <text outputFile="php://stdout" showUncoveredFiles="false"/> |
| 27 | + </report> |
| 28 | + </coverage> |
12 | 29 | <testsuites>
|
13 | 30 | <testsuite name="App">
|
14 | 31 | <directory>./tests</directory>
|
15 | 32 | </testsuite>
|
16 | 33 | </testsuites>
|
17 |
| - |
18 |
| - <filter> |
19 |
| - <whitelist addUncoveredFilesFromWhitelist="true" processUncoveredFilesFromWhitelist="true"> |
20 |
| - <directory suffix=".php">./app</directory> |
21 |
| - <exclude> |
22 |
| - <directory suffix=".php">./app/Views</directory> |
23 |
| - <file>./app/Config/Routes.php</file> |
24 |
| - </exclude> |
25 |
| - </whitelist> |
26 |
| - </filter> |
27 |
| - |
28 | 34 | <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"/> |
| 35 | + <testdoxHtml outputFile="build/logs/testdox.html"/> |
| 36 | + <testdoxText outputFile="build/logs/testdox.txt"/> |
| 37 | + <junit outputFile="build/logs/logfile.xml"/> |
36 | 38 | </logging>
|
37 |
| - |
38 | 39 | <php>
|
39 | 40 | <server name="app.baseURL" value="http://example.com/"/>
|
40 |
| - |
41 | 41 | <!-- Directory containing phpunit.xml -->
|
42 | 42 | <const name="HOMEPATH" value="./"/>
|
43 |
| - |
44 | 43 | <!-- Directory containing the Paths config file -->
|
45 | 44 | <const name="CONFIGPATH" value="./app/Config/"/>
|
46 |
| - |
47 | 45 | <!-- Directory containing the front controller (index.php) -->
|
48 | 46 | <const name="PUBLICPATH" value="./public/"/>
|
49 |
| - |
50 | 47 | <!-- Database configuration -->
|
51 |
| -<!-- <env name="database.tests.hostname" value="localhost"/> --> |
52 |
| -<!-- <env name="database.tests.database" value="tests"/> --> |
53 |
| -<!-- <env name="database.tests.username" value="tests_user"/> --> |
54 |
| -<!-- <env name="database.tests.password" value=""/> --> |
55 |
| -<!-- <env name="database.tests.DBDriver" value="MySQLi"/> --> |
56 |
| -<!-- <env name="database.tests.DBPrefix" value="tests_"/> --> |
57 |
| - <env name="database.tests.database" value=":memory:"/> |
58 |
| - <env name="database.tests.DBDriver" value="SQLite3"/> |
| 48 | + <!-- Uncomment to provide your own database for testing |
| 49 | + <env name="database.tests.hostname" value="localhost"/> |
| 50 | + <env name="database.tests.database" value="tests"/> |
| 51 | + <env name="database.tests.username" value="tests_user"/> |
| 52 | + <env name="database.tests.password" value=""/> |
| 53 | + <env name="database.tests.DBDriver" value="MySQLi"/> |
| 54 | + <env name="database.tests.DBPrefix" value="tests_"/> |
| 55 | + --> |
59 | 56 | </php>
|
60 | 57 | </phpunit>
|
0 commit comments