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