phpunit.xml.dist 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <phpunit
  2. bootstrap="tests/phpunit/includes/bootstrap.php"
  3. backupGlobals="false"
  4. colors="true"
  5. beStrictAboutTestsThatDoNotTestAnything="true"
  6. >
  7. <testsuites>
  8. <!-- Default test suite to run all tests. -->
  9. <testsuite name="default">
  10. <directory suffix=".php">tests/phpunit/tests</directory>
  11. <exclude>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</exclude>
  12. </testsuite>
  13. <!-- Sets the DOING_AUTOSAVE constant, so needs to be run last. -->
  14. <testsuite name="restapi-autosave">
  15. <file>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</file>
  16. </testsuite>
  17. </testsuites>
  18. <groups>
  19. <exclude>
  20. <group>ajax</group>
  21. <group>ms-files</group>
  22. <group>ms-required</group>
  23. <group>external-http</group>
  24. </exclude>
  25. </groups>
  26. <logging>
  27. <log type="junit" target="tests/phpunit/build/logs/junit.xml" />
  28. </logging>
  29. <php>
  30. <const name="WP_RUN_CORE_TESTS" value="1" />
  31. </php>
  32. <listeners>
  33. <listener class="SpeedTrapListener" file="tests/phpunit/includes/listener-loader.php">
  34. <arguments>
  35. <array>
  36. <element key="slowThreshold">
  37. <integer>150</integer>
  38. </element>
  39. </array>
  40. </arguments>
  41. </listener>
  42. </listeners>
  43. <filter>
  44. <whitelist addUncoveredFilesFromWhitelist="true">
  45. <directory suffix=".php">src</directory>
  46. <exclude>
  47. <!-- Third party library exclusions. -->
  48. <directory suffix=".php">src/wp-includes/ID3</directory>
  49. <directory suffix=".php">src/wp-includes/IXR</directory>
  50. <directory suffix=".php">src/wp-includes/random_compat</directory>
  51. <directory suffix=".php">src/wp-includes/Requests</directory>
  52. <directory suffix=".php">src/wp-includes/SimplePie</directory>
  53. <directory suffix=".php">src/wp-includes/Text</directory>
  54. <file>src/wp-admin/includes/class-ftp*</file>
  55. <file>src/wp-admin/includes/class-pclzip.php</file>
  56. <file>src/wp-admin/includes/deprecated.php</file>
  57. <file>src/wp-admin/includes/ms-deprecated.php</file>
  58. <file>src/wp-includes/atomlib.php</file>
  59. <file>src/wp-includes/class-IXR.php</file>
  60. <file>src/wp-includes/class-json.php</file>
  61. <file>src/wp-includes/class-phpass.php</file>
  62. <file>src/wp-includes/class-phpmailer.php</file>
  63. <file>src/wp-includes/class-pop3.php</file>
  64. <file>src/wp-includes/class-requests.php</file>
  65. <file>src/wp-includes/class-simplepie.php</file>
  66. <file>src/wp-includes/class-smtp.php</file>
  67. <file>src/wp-includes/class-snoopy.php</file>
  68. <file>src/wp-includes/deprecated.php</file>
  69. <file>src/wp-includes/ms-deprecated.php</file>
  70. <file>src/wp-includes/pluggable-deprecated.php</file>
  71. <file>src/wp-includes/rss.php</file>
  72. </exclude>
  73. </whitelist>
  74. </filter>
  75. </phpunit>