phpunit.xml.dist 2.6 KB

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