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