phpunit_rest.xml.dist 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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/6.2/phpunit.xsd"
  12. colors="true"
  13. columns="max"
  14. beStrictAboutTestsThatDoNotTestAnything="false"
  15. bootstrap="./framework/bootstrap.php"
  16. >
  17. <!-- Test suites definition -->
  18. <testsuites>
  19. <testsuite name="Magento REST web API functional tests">
  20. <directory suffix="Test.php">testsuite</directory>
  21. <exclude>testsuite/Magento/GraphQl</exclude>
  22. <directory suffix="Test.php">../../../app/code/*/*/Test/Api</directory>
  23. </testsuite>
  24. </testsuites>
  25. <!-- PHP INI settings and constants definition -->
  26. <php>
  27. <includePath>./testsuite</includePath>
  28. <const name="TESTS_INSTALL_CONFIG_FILE" value="config/install-config-mysql.php"/>
  29. <const name="TESTS_GLOBAL_CONFIG_FILE" value="config/config-global.php"/>
  30. <!-- WebSerivice Type -->
  31. <const name="TESTS_WEB_API_ADAPTER" value="rest"/>
  32. <!-- Webserver URL -->
  33. <const name="TESTS_BASE_URL" value="http://magento.url"/>
  34. <!-- Webserver API user -->
  35. <const name="TESTS_WEBSERVICE_USER" value="admin"/>
  36. <!-- Webserver API key -->
  37. <const name="TESTS_WEBSERVICE_APIKEY" value="123123q"/>
  38. <!-- Define if debugger should be started using XDEBUG_SESSION cookie -->
  39. <const name="TESTS_XDEBUG_ENABLED" value="false"/>
  40. <!-- Define XDEBUG_SESSION cookie value-->
  41. <const name="TESTS_XDEBUG_SESSION" value="phpstorm" />
  42. <!--Generate documentation from REST tests and put it into var/log/rest-documentation directory-->
  43. <const name="GENERATE_REST_DOCUMENTATION" value="false" />
  44. <ini name="date.timezone" value="America/Los_Angeles"/>
  45. <!-- Semicolon-separated 'glob' patterns, that match global XML configuration files -->
  46. <const name="TESTS_GLOBAL_CONFIG_DIR" value="../../../app/etc"/>
  47. <!-- Whether to cleanup the application before running tests or not -->
  48. <const name="TESTS_CLEANUP" value="enabled"/>
  49. <!--Defines if Magento should be installed before tests execution-->
  50. <const name="TESTS_MAGENTO_INSTALLATION" value="disabled"/>
  51. <!-- Magento mode for tests execution. Possible values are "default", "developer" and "production". -->
  52. <const name="TESTS_MAGENTO_MODE" value="default"/>
  53. </php>
  54. <!-- Test listeners -->
  55. <listeners>
  56. <listener class="Magento\TestFramework\Event\PhpUnit"/>
  57. <listener class="Yandex\Allure\Adapter\AllureAdapter">
  58. <arguments>
  59. <string>var/allure-results</string> <!-- XML files output folder -->
  60. <boolean>true</boolean> <!-- Whether to delete previous results on rerun -->
  61. <array> <!-- A list of custom annotations to ignore (optional) -->
  62. <element key="codingStandardsIgnoreStart">
  63. <string>codingStandardsIgnoreStart</string>
  64. </element>
  65. <element key="codingStandardsIgnoreEnd">
  66. <string>codingStandardsIgnoreEnd</string>
  67. </element>
  68. <element key="expectedExceptionMessageRegExp">
  69. <string>expectedExceptionMessageRegExp</string>
  70. </element>
  71. <element key="magentoAdminConfigFixture">
  72. <string>magentoAdminConfigFixture</string>
  73. </element>
  74. <element key="magentoAppArea">
  75. <string>magentoAppArea</string>
  76. </element>
  77. <element key="magentoAppIsolation">
  78. <string>magentoAppIsolation</string>
  79. </element>
  80. <element key="magentoCache">
  81. <string>magentoCache</string>
  82. </element>
  83. <element key="magentoComponentsDir">
  84. <string>magentoComponentsDir</string>
  85. </element>
  86. <element key="magentoConfigFixture">
  87. <string>magentoConfigFixture</string>
  88. </element>
  89. <element key="magentoDataFixture">
  90. <string>magentoDataFixture</string>
  91. </element>
  92. <element key="magentoDataFixtureBeforeTransaction">
  93. <string>magentoDataFixtureBeforeTransaction</string>
  94. </element>
  95. <element key="magentoDbIsolation">
  96. <string>magentoDbIsolation</string>
  97. </element>
  98. <element key="magentoIndexerDimensionMode">
  99. <string>magentoIndexerDimensionMode</string>
  100. </element>
  101. <element key="magentoApiDataFixture">
  102. <string>magentoApiDataFixture</string>
  103. </element>
  104. <element key="Override">
  105. <string>Override</string>
  106. </element>
  107. </array>
  108. </arguments>
  109. </listener>
  110. </listeners>
  111. </phpunit>