phpunit.xml.dist 2.5 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="https://schema.phpunit.de/10.5/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. <coverage
  14. includeUncoveredFiles="true"
  15. pathCoverage="false"
  16. ignoreDeprecatedCodeUnits="true"
  17. disableCodeCoverageIgnore="true">
  18. <report>
  19. <clover outputFile="build/logs/clover.xml"/>
  20. <html outputDirectory="build/logs/html"/>
  21. <php outputFile="build/logs/coverage.serialized"/>
  22. <text outputFile="php://stdout" showUncoveredFiles="false"/>
  23. </report>
  24. </coverage>
  25. <testsuites>
  26. <testsuite name="App">
  27. <directory>./tests</directory>
  28. </testsuite>
  29. </testsuites>
  30. <logging>
  31. <testdoxHtml outputFile="build/logs/testdox.html"/>
  32. <testdoxText outputFile="build/logs/testdox.txt"/>
  33. <junit outputFile="build/logs/logfile.xml"/>
  34. </logging>
  35. <source>
  36. <include>
  37. <directory suffix=".php">./app</directory>
  38. </include>
  39. <exclude>
  40. <directory suffix=".php">./app/Views</directory>
  41. <file>./app/Config/Routes.php</file>
  42. </exclude>
  43. </source>
  44. <php>
  45. <server name="app.baseURL" value="http://example.com/"/>
  46. <server name="CODEIGNITER_SCREAM_DEPRECATIONS" value="0"/>
  47. <!-- Directory containing phpunit.xml -->
  48. <const name="HOMEPATH" value="./"/>
  49. <!-- Directory containing the Paths config file -->
  50. <const name="CONFIGPATH" value="./app/Config/"/>
  51. <!-- Directory containing the front controller (index.php) -->
  52. <const name="PUBLICPATH" value="./public/"/>
  53. <!-- Database configuration -->
  54. <!-- Uncomment to provide your own database for testing
  55. <env name="database.tests.hostname" value="localhost"/>
  56. <env name="database.tests.database" value="tests"/>
  57. <env name="database.tests.username" value="tests_user"/>
  58. <env name="database.tests.password" value=""/>
  59. <env name="database.tests.DBDriver" value="MySQLi"/>
  60. <env name="database.tests.DBPrefix" value="tests_"/>
  61. -->
  62. </php>
  63. </phpunit>