phpunit.xml.dist 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- TODO set checkForUnintentionallyCoveredCode="true" once https://www.drupal.org/node/2626832 is resolved. -->
  3. <!-- PHPUnit expects functional tests to be run with either a privileged user
  4. or your current system user. See core/tests/README.md and
  5. https://www.drupal.org/node/2116263 for details.
  6. -->
  7. <phpunit bootstrap="tests/bootstrap.php" colors="true"
  8. beStrictAboutTestsThatDoNotTestAnything="true"
  9. beStrictAboutOutputDuringTests="true"
  10. beStrictAboutChangesToGlobalState="true"
  11. printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter">
  12. <php>
  13. <!-- Set error reporting to E_ALL. -->
  14. <ini name="error_reporting" value="32767"/>
  15. <!-- Do not limit the amount of memory tests take to run. -->
  16. <ini name="memory_limit" value="-1"/>
  17. <!-- Example SIMPLETEST_BASE_URL value: http://localhost -->
  18. <env name="SIMPLETEST_BASE_URL" value=""/>
  19. <!-- Example SIMPLETEST_DB value: mysql://username:password@localhost/databasename#table_prefix -->
  20. <env name="SIMPLETEST_DB" value=""/>
  21. <!-- Example BROWSERTEST_OUTPUT_DIRECTORY value: /path/to/webroot/sites/simpletest/browser_output -->
  22. <env name="BROWSERTEST_OUTPUT_DIRECTORY" value=""/>
  23. <!-- To have browsertest output use an alternative base URL. For example if
  24. SIMPLETEST_BASE_URL is an internal DDEV URL, you can set this to the
  25. external DDev URL so you can follow the links directly.
  26. -->
  27. <env name="BROWSERTEST_OUTPUT_BASE_URL" value=""/>
  28. <!-- To disable deprecation testing completely uncomment the next line. -->
  29. <!-- <env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/> -->
  30. <!-- Example for changing the driver class for mink tests MINK_DRIVER_CLASS value: 'Drupal\FunctionalJavascriptTests\DrupalSelenium2Driver' -->
  31. <env name="MINK_DRIVER_CLASS" value=''/>
  32. <!-- Example for changing the driver args to mink tests MINK_DRIVER_ARGS value: '["http://127.0.0.1:8510"]' -->
  33. <env name="MINK_DRIVER_ARGS" value=''/>
  34. <!-- Example for changing the driver args to phantomjs tests MINK_DRIVER_ARGS_PHANTOMJS value: '["http://127.0.0.1:8510"]' -->
  35. <env name="MINK_DRIVER_ARGS_PHANTOMJS" value=''/>
  36. <!-- Example for changing the driver args to webdriver tests MINK_DRIVER_ARGS_WEBDRIVER value: '["chrome", { "chromeOptions": { "w3c": false } }, "http://localhost:4444/wd/hub"]' For using the Firefox browser, replace "chrome" with "firefox" -->
  37. <env name="MINK_DRIVER_ARGS_WEBDRIVER" value=''/>
  38. </php>
  39. <testsuites>
  40. <testsuite name="unit">
  41. <file>./tests/TestSuites/UnitTestSuite.php</file>
  42. </testsuite>
  43. <testsuite name="kernel">
  44. <file>./tests/TestSuites/KernelTestSuite.php</file>
  45. </testsuite>
  46. <testsuite name="functional">
  47. <file>./tests/TestSuites/FunctionalTestSuite.php</file>
  48. </testsuite>
  49. <testsuite name="functional-javascript">
  50. <file>./tests/TestSuites/FunctionalJavascriptTestSuite.php</file>
  51. </testsuite>
  52. <testsuite name="build">
  53. <file>./tests/TestSuites/BuildTestSuite.php</file>
  54. </testsuite>
  55. </testsuites>
  56. <listeners>
  57. <listener class="\Drupal\Tests\Listeners\DrupalListener">
  58. </listener>
  59. <!-- The Symfony deprecation listener has to come after the Drupal listener -->
  60. <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
  61. </listener>
  62. </listeners>
  63. <!-- Filter for coverage reports. -->
  64. <filter>
  65. <whitelist>
  66. <directory>./includes</directory>
  67. <directory>./lib</directory>
  68. <!-- Extensions can have their own test directories, so exclude those. -->
  69. <directory>./modules</directory>
  70. <exclude>
  71. <directory>./modules/*/src/Tests</directory>
  72. <directory>./modules/*/tests</directory>
  73. </exclude>
  74. <directory>../modules</directory>
  75. <exclude>
  76. <directory>../modules/*/src/Tests</directory>
  77. <directory>../modules/*/tests</directory>
  78. <directory>../modules/*/*/src/Tests</directory>
  79. <directory>../modules/*/*/tests</directory>
  80. </exclude>
  81. <directory>../sites</directory>
  82. </whitelist>
  83. </filter>
  84. </phpunit>