phpunit.xml.dist 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. checkForUnintentionallyCoveredCode="false">
  12. <!-- TODO set printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter" once
  13. https://youtrack.jetbrains.com/issue/WI-24808 is resolved. Drupal provides a
  14. result printer that links to the html output results for functional tests.
  15. Unfortunately, this breaks the output of PHPStorm's PHPUnit runner. However, if
  16. using the command line you can add
  17. - -printer="\Drupal\Tests\Listeners\HtmlOutputPrinter" to use it (note there
  18. should be no spaces between the hyphens).
  19. -->
  20. <php>
  21. <!-- Set error reporting to E_ALL. -->
  22. <ini name="error_reporting" value="32767"/>
  23. <!-- Do not limit the amount of memory tests take to run. -->
  24. <ini name="memory_limit" value="-1"/>
  25. <!-- Example SIMPLETEST_BASE_URL value: http://localhost -->
  26. <env name="SIMPLETEST_BASE_URL" value=""/>
  27. <!-- Example SIMPLETEST_DB value: mysql://username:password@localhost/databasename#table_prefix -->
  28. <env name="SIMPLETEST_DB" value=""/>
  29. <!-- Example BROWSERTEST_OUTPUT_DIRECTORY value: /path/to/webroot/sites/simpletest/browser_output -->
  30. <env name="BROWSERTEST_OUTPUT_DIRECTORY" value=""/>
  31. </php>
  32. <testsuites>
  33. <testsuite name="unit">
  34. <file>./tests/TestSuites/UnitTestSuite.php</file>
  35. </testsuite>
  36. <testsuite name="kernel">
  37. <file>./tests/TestSuites/KernelTestSuite.php</file>
  38. </testsuite>
  39. <testsuite name="functional">
  40. <file>./tests/TestSuites/FunctionalTestSuite.php</file>
  41. </testsuite>
  42. <testsuite name="functional-javascript">
  43. <file>./tests/TestSuites/FunctionalJavascriptTestSuite.php</file>
  44. </testsuite>
  45. </testsuites>
  46. <listeners>
  47. <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
  48. </listener>
  49. <listener class="\Drupal\Tests\Listeners\DrupalStandardsListener">
  50. </listener>
  51. <listener class="\Drupal\Tests\Listeners\DrupalComponentTestListener">
  52. </listener>
  53. </listeners>
  54. <!-- Filter for coverage reports. -->
  55. <filter>
  56. <whitelist>
  57. <directory>./includes</directory>
  58. <directory>./lib</directory>
  59. <directory>./modules</directory>
  60. <directory>../modules</directory>
  61. <directory>../sites</directory>
  62. <!-- By definition test classes have no tests. -->
  63. <exclude>
  64. <directory suffix="Test.php">./</directory>
  65. <directory suffix="TestBase.php">./</directory>
  66. </exclude>
  67. </whitelist>
  68. </filter>
  69. </phpunit>