|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
| 3 | + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" |
3 | 4 | bootstrap="vendor/codeigniter4/framework/system/Test/bootstrap.php"
|
4 | 5 | backupGlobals="false"
|
| 6 | + beStrictAboutCoversAnnotation="true" |
| 7 | + beStrictAboutOutputDuringTests="true" |
| 8 | + beStrictAboutTodoAnnotatedTests="true" |
5 | 9 | colors="true"
|
6 | 10 | convertErrorsToExceptions="true"
|
7 | 11 | convertNoticesToExceptions="true"
|
8 | 12 | convertWarningsToExceptions="true"
|
| 13 | + executionOrder="random" |
| 14 | + failOnRisky="true" |
| 15 | + failOnWarning="true" |
9 | 16 | stopOnError="false"
|
10 | 17 | stopOnFailure="false"
|
11 | 18 | stopOnIncomplete="false"
|
12 | 19 | stopOnSkipped="false"
|
13 |
| - xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> |
| 20 | + verbose="true"> |
| 21 | + |
14 | 22 | <coverage includeUncoveredFiles="true" processUncoveredFiles="true">
|
15 | 23 | <include>
|
16 | 24 | <directory suffix=".php">./app</directory>
|
| 25 | + <directory suffix=".php">./bonfire</directory> |
17 | 26 | </include>
|
18 | 27 | <exclude>
|
| 28 | + <directory suffix=".php">./app/Config</directory> |
19 | 29 | <directory suffix=".php">./app/Views</directory>
|
| 30 | + <directory suffix=".php">./bonfire/Views</directory> |
20 | 31 | <file>./app/Config/Routes.php</file>
|
21 | 32 | </exclude>
|
22 | 33 | <report>
|
23 |
| - <clover outputFile="build/logs/clover.xml"/> |
24 |
| - <html outputDirectory="build/logs/html"/> |
25 |
| - <php outputFile="build/logs/coverage.serialized"/> |
| 34 | + <clover outputFile="build/phpunit/clover.xml"/> |
| 35 | + <html outputDirectory="build/phpunit/html"/> |
| 36 | + <php outputFile="build/phpunit/coverage.serialized"/> |
26 | 37 | <text outputFile="php://stdout" showUncoveredFiles="false"/>
|
| 38 | + <xml outputDirectory="build/phpunit/xml-coverage"/> |
27 | 39 | </report>
|
28 | 40 | </coverage>
|
| 41 | + |
29 | 42 | <testsuites>
|
30 |
| - <testsuite name="App"> |
| 43 | + <testsuite name="app"> |
31 | 44 | <directory>./tests</directory>
|
32 | 45 | </testsuite>
|
33 | 46 | </testsuites>
|
| 47 | + |
| 48 | + <extensions> |
| 49 | + <extension class="Nexus\PHPUnit\Extension\Tachycardia"> |
| 50 | + <arguments> |
| 51 | + <array> |
| 52 | + <element key="timeLimit"> |
| 53 | + <double>0.50</double> |
| 54 | + </element> |
| 55 | + <element key="reportable"> |
| 56 | + <integer>30</integer> |
| 57 | + </element> |
| 58 | + <element key="precision"> |
| 59 | + <integer>2</integer> |
| 60 | + </element> |
| 61 | + <element key="collectBare"> |
| 62 | + <boolean>true</boolean> |
| 63 | + </element> |
| 64 | + <element key="tabulate"> |
| 65 | + <boolean>true</boolean> |
| 66 | + </element> |
| 67 | + </array> |
| 68 | + </arguments> |
| 69 | + </extension> |
| 70 | + </extensions> |
| 71 | + |
34 | 72 | <logging>
|
35 |
| - <testdoxHtml outputFile="build/logs/testdox.html"/> |
36 |
| - <testdoxText outputFile="build/logs/testdox.txt"/> |
37 |
| - <junit outputFile="build/logs/logfile.xml"/> |
| 73 | + <testdoxHtml outputFile="build/phpunit/testdox.html"/> |
| 74 | + <testdoxText outputFile="build/phpunit/testdox.txt"/> |
| 75 | + <junit outputFile="build/phpunit/junit.xml"/> |
38 | 76 | </logging>
|
| 77 | + |
39 | 78 | <php>
|
40 |
| - <server name="app.baseURL" value="http://example.com/"/> |
| 79 | + <env name="XDEBUG_MODE" value="coverage"/> |
| 80 | + <server name="app.baseURL" value="http://example.com"/> |
| 81 | + |
41 | 82 | <!-- Directory containing phpunit.xml -->
|
42 | 83 | <const name="HOMEPATH" value="./"/>
|
| 84 | + |
43 | 85 | <!-- Directory containing the Paths config file -->
|
44 | 86 | <const name="CONFIGPATH" value="./app/Config/"/>
|
| 87 | + |
45 | 88 | <!-- Directory containing the front controller (index.php) -->
|
46 | 89 | <const name="PUBLICPATH" value="./public/"/>
|
| 90 | + |
| 91 | + <!-- https://getcomposer.org/xdebug --> |
| 92 | + <env name="COMPOSER_DISABLE_XDEBUG_WARN" value="1"/> |
| 93 | + |
47 | 94 | <!-- Database configuration -->
|
48 |
| - <!-- Uncomment to provide your own database for testing |
| 95 | + <env name="database.tests.strictOn" value="true"/> |
| 96 | + <!-- Uncomment to use alternate testing database configuration |
49 | 97 | <env name="database.tests.hostname" value="localhost"/>
|
50 | 98 | <env name="database.tests.database" value="tests"/>
|
51 | 99 | <env name="database.tests.username" value="tests_user"/>
|
|
0 commit comments