Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

143 строки
7.6 KiB

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