phpunit.dist.xml 2.4 KB

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