phpunit.xml.dist 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.2/phpunit.xsd"
  10. colors="true"
  11. columns="max"
  12. beStrictAboutTestsThatDoNotTestAnything="false"
  13. bootstrap="./framework/bootstrap.php"
  14. stderr="true"
  15. >
  16. <!-- Test suites definition -->
  17. <testsuites>
  18. <!-- Memory tests run first to prevent influence of other tests on accuracy of memory measurements -->
  19. <testsuite name="Memory Usage Tests">
  20. <file>testsuite/Magento/MemoryUsageTest.php</file>
  21. </testsuite>
  22. <testsuite name="Magento Integration Tests">
  23. <directory suffix="Test.php">testsuite</directory>
  24. <directory suffix="Test.php">../../../app/code/*/*/Test/Integration</directory>
  25. <exclude>testsuite/Magento/MemoryUsageTest.php</exclude>
  26. </testsuite>
  27. </testsuites>
  28. <!-- Code coverage filters -->
  29. <filter>
  30. <whitelist addUncoveredFilesFromWhiteList="true">
  31. <directory suffix=".php">../../../app/code/Magento</directory>
  32. <directory suffix=".php">../../../lib/internal/Magento</directory>
  33. <exclude>
  34. <directory>../../../app/code/*/*/Test</directory>
  35. <directory>../../../lib/internal/*/*/Test</directory>
  36. <directory>../../../lib/internal/*/*/*/Test</directory>
  37. <directory>../../../setup/src/*/*/Test</directory>
  38. </exclude>
  39. </whitelist>
  40. </filter>
  41. <!-- PHP INI settings and constants definition -->
  42. <php>
  43. <includePath>.</includePath>
  44. <includePath>testsuite</includePath>
  45. <ini name="date.timezone" value="America/Los_Angeles"/>
  46. <ini name="xdebug.max_nesting_level" value="200"/>
  47. <!-- Local XML configuration file ('.dist' extension will be added, if the specified file doesn't exist) -->
  48. <const name="TESTS_INSTALL_CONFIG_FILE" value="etc/install-config-mysql.php"/>
  49. <!-- Local XML configuration file ('.dist' extension will be added, if the specified file doesn't exist) -->
  50. <const name="TESTS_GLOBAL_CONFIG_FILE" value="etc/config-global.php"/>
  51. <!-- Semicolon-separated 'glob' patterns, that match global XML configuration files -->
  52. <const name="TESTS_GLOBAL_CONFIG_DIR" value="../../../app/etc"/>
  53. <!-- Whether to cleanup the application before running tests or not -->
  54. <const name="TESTS_CLEANUP" value="enabled"/>
  55. <!-- Memory usage and estimated leaks thresholds -->
  56. <!--<const name="TESTS_MEM_USAGE_LIMIT" value="1024M"/>-->
  57. <const name="TESTS_MEM_LEAK_LIMIT" value=""/>
  58. <!-- Path to Percona Toolkit bin directory -->
  59. <!--<const name="PERCONA_TOOLKIT_BIN_DIR" value=""/>-->
  60. <!-- CSV Profiler Output file -->
  61. <!--<const name="TESTS_PROFILER_FILE" value="profiler.csv"/>-->
  62. <!-- Bamboo compatible CSV Profiler Output file name -->
  63. <!--<const name="TESTS_BAMBOO_PROFILER_FILE" value="profiler.csv"/>-->
  64. <!-- Metrics for Bamboo Profiler Output in PHP file that returns array -->
  65. <!--<const name="TESTS_BAMBOO_PROFILER_METRICS_FILE" value="../../build/profiler_metrics.php"/>-->
  66. <!-- Whether to output all CLI commands executed by the bootstrap and tests -->
  67. <const name="TESTS_EXTRA_VERBOSE_LOG" value="1"/>
  68. <!-- Magento mode for tests execution. Possible values are "default", "developer" and "production". -->
  69. <const name="TESTS_MAGENTO_MODE" value="developer"/>
  70. <!-- Minimum error log level to listen for. Possible values: -1 ignore all errors, and level constants form http://tools.ietf.org/html/rfc5424 standard -->
  71. <const name="TESTS_ERROR_LOG_LISTENER_LEVEL" value="-1"/>
  72. <!-- Connection parameters for MongoDB library tests -->
  73. <!--<const name="MONGODB_CONNECTION_STRING" value="mongodb://localhost:27017"/>-->
  74. <!--<const name="MONGODB_DATABASE_NAME" value="magento_integration_tests"/>-->
  75. <!-- Connection parameters for RabbitMQ tests -->
  76. <!--<const name="RABBITMQ_MANAGEMENT_PORT" value="15672"/>-->
  77. </php>
  78. <!-- Test listeners -->
  79. <listeners>
  80. <listener class="Magento\TestFramework\Event\PhpUnit"/>
  81. <listener class="Magento\TestFramework\ErrorLog\Listener"/>
  82. <listener class="Yandex\Allure\Adapter\AllureAdapter">
  83. <arguments>
  84. <string>var/allure-results</string> <!-- XML files output directory -->
  85. <boolean>true</boolean> <!-- Whether to delete previous results on rerun -->
  86. <array> <!-- A list of custom annotations to ignore (optional) -->
  87. <element key="codingStandardsIgnoreStart">
  88. <string>codingStandardsIgnoreStart</string>
  89. </element>
  90. <element key="codingStandardsIgnoreEnd">
  91. <string>codingStandardsIgnoreEnd</string>
  92. </element>
  93. <element key="expectedExceptionMessageRegExp">
  94. <string>expectedExceptionMessageRegExp</string>
  95. </element>
  96. <element key="magentoAdminConfigFixture">
  97. <string>magentoAdminConfigFixture</string>
  98. </element>
  99. <element key="magentoAppArea">
  100. <string>magentoAppArea</string>
  101. </element>
  102. <element key="magentoAppIsolation">
  103. <string>magentoAppIsolation</string>
  104. </element>
  105. <element key="magentoCache">
  106. <string>magentoCache</string>
  107. </element>
  108. <element key="magentoComponentsDir">
  109. <string>magentoComponentsDir</string>
  110. </element>
  111. <element key="magentoConfigFixture">
  112. <string>magentoConfigFixture</string>
  113. </element>
  114. <element key="magentoDataFixture">
  115. <string>magentoDataFixture</string>
  116. </element>
  117. <element key="magentoDataFixtureBeforeTransaction">
  118. <string>magentoDataFixtureBeforeTransaction</string>
  119. </element>
  120. <element key="magentoDbIsolation">
  121. <string>magentoDbIsolation</string>
  122. </element>
  123. <element key="magentoIndexerDimensionMode">
  124. <string>magentoIndexerDimensionMode</string>
  125. </element>
  126. </array>
  127. </arguments>
  128. </listener>
  129. </listeners>
  130. </phpunit>