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

124 строки
5.9 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. /**
  4. * PHPUnit configuration for REST web API functional tests.
  5. *
  6. * Copyright © Magento, Inc. All rights reserved.
  7. * See COPYING.txt for license details.
  8. */
  9. -->
  10. <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  11. xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/9.1/phpunit.xsd"
  12. colors="true"
  13. columns="max"
  14. beStrictAboutTestsThatDoNotTestAnything="false"
  15. bootstrap="./framework/bootstrap.php"
  16. testSuiteLoaderClass="Magento\TestFramework\ApiSuiteLoader"
  17. testSuiteLoaderFile="framework/Magento/TestFramework/ApiSuiteLoader.php"
  18. >
  19. <!-- Test suites definition -->
  20. <testsuites>
  21. <testsuite name="Magento REST web API functional tests">
  22. <file>testsuite/Magento/WebApiTest.php</file>
  23. </testsuite>
  24. <testsuite name="Magento REST web API functional tests real suite">
  25. <directory>testsuite</directory>
  26. <directory>../../../app/code/*/*/Test/Api</directory>
  27. <exclude>testsuite/Magento/GraphQl</exclude>
  28. </testsuite>
  29. </testsuites>
  30. <!-- PHP INI settings and constants definition -->
  31. <php>
  32. <includePath>./testsuite</includePath>
  33. <const name="TESTS_INSTALL_CONFIG_FILE" value="config/install-config-mysql.php"/>
  34. <!-- Local XML post installation configuration file ('.dist' extension will be added, if the specified file doesn't exist) -->
  35. <const name="TESTS_POST_INSTALL_SETUP_COMMAND_CONFIG_FILE" value="config/post-install-setup-command-config.php"/>
  36. <const name="TESTS_GLOBAL_CONFIG_FILE" value="config/config-global.php"/>
  37. <!-- WebSerivice Type -->
  38. <const name="TESTS_WEB_API_ADAPTER" value="rest"/>
  39. <!-- Webserver URL -->
  40. <const name="TESTS_BASE_URL" value="http://magento.url"/>
  41. <!-- Webserver API user -->
  42. <const name="TESTS_WEBSERVICE_USER" value="admin"/>
  43. <!-- Webserver API key -->
  44. <const name="TESTS_WEBSERVICE_APIKEY" value="123123q"/>
  45. <!-- Define if debugger should be started using XDEBUG_SESSION cookie -->
  46. <const name="TESTS_XDEBUG_ENABLED" value="false"/>
  47. <!-- Define XDEBUG_SESSION cookie value-->
  48. <const name="TESTS_XDEBUG_SESSION" value="phpstorm" />
  49. <!--Generate documentation from REST tests and put it into var/log/rest-documentation directory-->
  50. <const name="GENERATE_REST_DOCUMENTATION" value="false" />
  51. <ini name="date.timezone" value="America/Los_Angeles"/>
  52. <!-- Semicolon-separated 'glob' patterns, that match global XML configuration files -->
  53. <const name="TESTS_GLOBAL_CONFIG_DIR" value="../../../app/etc"/>
  54. <!-- Whether to cleanup the application before running tests or not -->
  55. <const name="TESTS_CLEANUP" value="enabled"/>
  56. <!--Defines if Magento should be installed before tests execution-->
  57. <const name="TESTS_MAGENTO_INSTALLATION" value="disabled"/>
  58. <!-- Magento mode for tests execution. Possible values are "default", "developer" and "production". -->
  59. <const name="TESTS_MAGENTO_MODE" value="default"/>
  60. <const name="USE_OVERRIDE_CONFIG" value="enabled"/>
  61. </php>
  62. <!-- Test listeners -->
  63. <listeners>
  64. <listener class="Magento\TestFramework\Event\PhpUnit"/>
  65. <listener class="Yandex\Allure\PhpUnit\AllurePhpUnit">
  66. <arguments>
  67. <string>var/allure-results</string> <!-- XML files output folder -->
  68. <boolean>true</boolean> <!-- Whether to delete previous results on rerun -->
  69. <array> <!-- A list of custom annotations to ignore (optional) -->
  70. <element key="codingStandardsIgnoreStart">
  71. <string>codingStandardsIgnoreStart</string>
  72. </element>
  73. <element key="codingStandardsIgnoreEnd">
  74. <string>codingStandardsIgnoreEnd</string>
  75. </element>
  76. <element key="expectedExceptionMessageRegExp">
  77. <string>expectedExceptionMessageRegExp</string>
  78. </element>
  79. <element key="magentoAdminConfigFixture">
  80. <string>magentoAdminConfigFixture</string>
  81. </element>
  82. <element key="magentoAppArea">
  83. <string>magentoAppArea</string>
  84. </element>
  85. <element key="magentoAppIsolation">
  86. <string>magentoAppIsolation</string>
  87. </element>
  88. <element key="magentoCache">
  89. <string>magentoCache</string>
  90. </element>
  91. <element key="magentoComponentsDir">
  92. <string>magentoComponentsDir</string>
  93. </element>
  94. <element key="magentoConfigFixture">
  95. <string>magentoConfigFixture</string>
  96. </element>
  97. <element key="magentoDataFixture">
  98. <string>magentoDataFixture</string>
  99. </element>
  100. <element key="magentoDataFixtureBeforeTransaction">
  101. <string>magentoDataFixtureBeforeTransaction</string>
  102. </element>
  103. <element key="magentoDbIsolation">
  104. <string>magentoDbIsolation</string>
  105. </element>
  106. <element key="magentoIndexerDimensionMode">
  107. <string>magentoIndexerDimensionMode</string>
  108. </element>
  109. <element key="magentoApiDataFixture">
  110. <string>magentoApiDataFixture</string>
  111. </element>
  112. <element key="Override">
  113. <string>Override</string>
  114. </element>
  115. </array>
  116. </arguments>
  117. </listener>
  118. </listeners>
  119. </phpunit>