|
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 | + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" |
| 4 | + bootstrap="vendor/codeigniter4/codeigniter4/system/Test/bootstrap.php" |
3 | 5 | backupGlobals="false" |
| 6 | + beStrictAboutCoversAnnotation="true" |
| 7 | + beStrictAboutOutputDuringTests="true" |
| 8 | + beStrictAboutTodoAnnotatedTests="true" |
4 | 9 | colors="true" |
5 | 10 | convertErrorsToExceptions="true" |
6 | 11 | convertNoticesToExceptions="true" |
7 | 12 | convertWarningsToExceptions="true" |
8 | | - stopOnError="false" |
| 13 | + executionOrder="random" |
| 14 | + failOnRisky="true" |
| 15 | + failOnWarning="true" |
| 16 | + stopOnError="true" |
9 | 17 | stopOnFailure="false" |
10 | 18 | stopOnIncomplete="false" |
11 | | - stopOnSkipped="false"> |
| 19 | + stopOnSkipped="false" |
| 20 | + verbose="true"> |
| 21 | + |
| 22 | + <coverage includeUncoveredFiles="true" processUncoveredFiles="true"> |
| 23 | + <include> |
| 24 | + <directory suffix=".php">./src</directory> |
| 25 | + </include> |
| 26 | + <exclude> |
| 27 | + <directory suffix=".php">./src/Views</directory> |
| 28 | + <file>./src/Config/Routes.php</file> |
| 29 | + </exclude> |
| 30 | + <report> |
| 31 | + <clover outputFile="build/phpunit/clover.xml"/> |
| 32 | + <html outputDirectory="build/phpunit/html"/> |
| 33 | + <php outputFile="build/phpunit/coverage.serialized"/> |
| 34 | + <text outputFile="php://stdout" showUncoveredFiles="false"/> |
| 35 | + <xml outputDirectory="build/phpunit/xml-coverage"/> |
| 36 | + </report> |
| 37 | + </coverage> |
| 38 | + |
12 | 39 | <testsuites> |
13 | 40 | <testsuite name="app"> |
14 | 41 | <directory>./tests</directory> |
15 | 42 | </testsuite> |
16 | 43 | </testsuites> |
17 | 44 |
|
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> |
| 45 | + <extensions> |
| 46 | + <extension class="Nexus\PHPUnit\Extension\Tachycardia"> |
| 47 | + <arguments> |
| 48 | + <array> |
| 49 | + <element key="timeLimit"> |
| 50 | + <double>0.50</double> |
| 51 | + </element> |
| 52 | + <element key="reportable"> |
| 53 | + <integer>30</integer> |
| 54 | + </element> |
| 55 | + <element key="precision"> |
| 56 | + <integer>2</integer> |
| 57 | + </element> |
| 58 | + <element key="tabulate"> |
| 59 | + <boolean>true</boolean> |
| 60 | + </element> |
| 61 | + </array> |
| 62 | + </arguments> |
| 63 | + </extension> |
| 64 | + </extensions> |
27 | 65 |
|
28 | 66 | <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"/> |
| 67 | + <testdoxHtml outputFile="build/phpunit/testdox.html"/> |
| 68 | + <testdoxText outputFile="build/phpunit/testdox.txt"/> |
| 69 | + <junit outputFile="build/phpunit/junit.xml"/> |
36 | 70 | </logging> |
37 | 71 |
|
38 | 72 | <php> |
| 73 | + <env name="XDEBUG_MODE" value="coverage"/> |
39 | 74 | <server name="app.baseURL" value="http://example.com"/> |
40 | 75 |
|
41 | 76 | <!-- Directory containing phpunit.xml --> |
|
51 | 86 | <env name="COMPOSER_DISABLE_XDEBUG_WARN" value="1"/> |
52 | 87 |
|
53 | 88 | <!-- Database configuration --> |
54 | | -<!-- <env name="database.tests.hostname" value="localhost"/> --> |
55 | | -<!-- <env name="database.tests.database" value="tests"/> --> |
56 | | -<!-- <env name="database.tests.username" value="tests_user"/> --> |
57 | | -<!-- <env name="database.tests.password" value=""/> --> |
58 | | -<!-- <env name="database.tests.DBDriver" value="MySQLi"/> --> |
59 | | -<!-- <env name="database.tests.DBPrefix" value="tests_"/> --> |
60 | | - <env name="database.tests.database" value=":memory:"/> |
61 | | - <env name="database.tests.DBDriver" value="SQLite3"/> |
| 89 | + <!-- Uncomment to use alternate testing database configuration |
| 90 | + <env name="database.tests.hostname" value="localhost"/> |
| 91 | + <env name="database.tests.database" value="tests"/> |
| 92 | + <env name="database.tests.username" value="tests_user"/> |
| 93 | + <env name="database.tests.password" value=""/> |
| 94 | + <env name="database.tests.DBDriver" value="MySQLi"/> |
| 95 | + <env name="database.tests.DBPrefix" value="tests_"/> |
| 96 | + --> |
62 | 97 | </php> |
63 | 98 | </phpunit> |
0 commit comments