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