You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
3.7KB

  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="../../../core/tests/bootstrap.php" colors="true"
  8. beStrictAboutTestsThatDoNotTestAnything="true"
  9. beStrictAboutOutputDuringTests="true"
  10. beStrictAboutChangesToGlobalState="true">
  11. <!-- TODO set printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter" once
  12. https://youtrack.jetbrains.com/issue/WI-24808 is resolved. Drupal provides a
  13. result printer that links to the html output results for functional tests.
  14. Unfortunately, this breaks the output of PHPStorm's PHPUnit runner. However, if
  15. using the command line you can add
  16. - -printer="\Drupal\Tests\Listeners\HtmlOutputPrinter" to use it (note there
  17. should be no spaces between the hyphens).
  18. -->
  19. <php>
  20. <!-- Set error reporting to E_ALL. -->
  21. <ini name="error_reporting" value="32767"/>
  22. <!-- Do not limit the amount of memory tests take to run. -->
  23. <ini name="memory_limit" value="-1"/>
  24. <!-- Example SIMPLETEST_BASE_URL value: http://localhost -->
  25. <env name="SIMPLETEST_BASE_URL" value="http://localhost"/>
  26. <!-- Example SIMPLETEST_DB value: mysql://username:[email protected]/databasename#table_prefix -->
  27. <env name="SIMPLETEST_DB" value="sqlite://localhost/sites/default/files/.ht.sqlite"/>
  28. <!-- Example BROWSERTEST_OUTPUT_DIRECTORY value: /path/to/webroot/sites/simpletest/browser_output -->
  29. <env name="BROWSERTEST_OUTPUT_DIRECTORY" value=""/>
  30. <!-- To disable deprecation testing uncomment the next line. -->
  31. <env name="SYMFONY_DEPRECATIONS_HELPER" value="weak_vendors"/>
  32. <env name="MINK_DRIVER_ARGS_WEBDRIVER" value='["chrome", null, "http://localhost:4444/wd/hub"]'/>
  33. <!-- Example for changing the driver class for mink tests MINK_DRIVER_CLASS value: 'Drupal\FunctionalJavascriptTests\DrupalSelenium2Driver' -->
  34. <!-- Example for changing the driver args to mink tests MINK_DRIVER_ARGS value: '["http://127.0.0.1:8510"]' -->
  35. <!-- Example for changing the driver args to phantomjs tests MINK_DRIVER_ARGS_PHANTOMJS value: '["http://127.0.0.1:8510"]' -->
  36. <!-- Example for changing the driver args to webdriver tests MINK_DRIVER_ARGS_WEBDRIVER value: '["firefox", null, "http://localhost:4444/wd/hub"]' -->
  37. </php>
  38. <testsuites>
  39. <testsuite name="unit">
  40. <file>./tests/TestSuites/UnitTestSuite.php</file>
  41. </testsuite>
  42. <testsuite name="kernel">
  43. <file>./tests/TestSuites/KernelTestSuite.php</file>
  44. </testsuite>
  45. <testsuite name="functional">
  46. <file>./tests/TestSuites/FunctionalTestSuite.php</file>
  47. </testsuite>
  48. <testsuite name="functional-javascript">
  49. <file>./tests/TestSuites/FunctionalJavascriptTestSuite.php</file>
  50. </testsuite>
  51. </testsuites>
  52. <listeners>
  53. <listener class="\Drupal\Tests\Listeners\DrupalListener">
  54. </listener>
  55. <!-- The Symfony deprecation listener has to come after the Drupal listener -->
  56. <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
  57. </listener>
  58. </listeners>
  59. <!-- Filter for coverage reports. -->
  60. <filter>
  61. <whitelist>
  62. <directory>./includes</directory>
  63. <directory>./lib</directory>
  64. <directory>./modules</directory>
  65. <directory>../modules</directory>
  66. <directory>../sites</directory>
  67. <!-- By definition test classes have no tests. -->
  68. <exclude>
  69. <directory suffix="Test.php">./</directory>
  70. <directory suffix="TestBase.php">./</directory>
  71. </exclude>
  72. </whitelist>
  73. </filter>
  74. </phpunit>