phpunit.xml.dist 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <phpunit bootstrap="vendor/codeigniter4/framework/system/Test/bootstrap.php"
  3. backupGlobals="false"
  4. colors="true"
  5. convertErrorsToExceptions="true"
  6. convertNoticesToExceptions="true"
  7. convertWarningsToExceptions="true"
  8. stopOnError="false"
  9. stopOnFailure="false"
  10. stopOnIncomplete="false"
  11. stopOnSkipped="false">
  12. <testsuites>
  13. <testsuite name="app">
  14. <directory>./tests</directory>
  15. </testsuite>
  16. </testsuites>
  17. <filter>
  18. <whitelist addUncoveredFilesFromWhitelist="true" processUncoveredFilesFromWhitelist="true">
  19. <directory suffix=".php">./app</directory>
  20. <exclude>
  21. <directory suffix=".php">./app/Views</directory>
  22. <file>./app/Config/Routes.php</file>
  23. </exclude>
  24. </whitelist>
  25. </filter>
  26. <logging>
  27. <log type="coverage-html" target="build/logs/html"/>
  28. <log type="coverage-clover" target="build/logs/clover.xml"/>
  29. <log type="coverage-php" target="build/logs/coverage.serialized"/>
  30. <log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>
  31. <log type="testdox-html" target="build/logs/testdox.html"/>
  32. <log type="testdox-text" target="build/logs/testdox.txt"/>
  33. <log type="junit" target="build/logs/logfile.xml"/>
  34. </logging>
  35. <php>
  36. <server name="app.baseURL" value="http://example.com"/>
  37. <!-- Directory containing phpunit.xml -->
  38. <const name="HOMEPATH" value="./"/>
  39. <!-- Directory containing the Paths config file -->
  40. <const name="CONFIGPATH" value="./app/Config/"/>
  41. <!-- Directory containing the front controller (index.php) -->
  42. <const name="PUBLICPATH" value="./public/"/>
  43. <!-- Database configuration -->
  44. <!-- <env name="database.tests.hostname" value="localhost"/> -->
  45. <!-- <env name="database.tests.database" value="tests"/> -->
  46. <!-- <env name="database.tests.username" value="tests_user"/> -->
  47. <!-- <env name="database.tests.password" value=""/> -->
  48. <!-- <env name="database.tests.DBDriver" value="MySQLi"/> -->
  49. <!-- <env name="database.tests.DBPrefix" value="tests_"/> -->
  50. <env name="database.tests.database" value=":memory:"/>
  51. <env name="database.tests.DBDriver" value="SQLite3"/>
  52. </php>
  53. </phpunit>