phpunit.xml.dist 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. <testsuite name="Magento Setup/Upgrade Tests">
  19. <directory suffix="Test.php">testsuite</directory>
  20. </testsuite>
  21. </testsuites>
  22. <!-- Code coverage filters -->
  23. <filter>
  24. <whitelist addUncoveredFilesFromWhiteList="true">
  25. <directory suffix=".php">../../../app/code/Magento</directory>
  26. <directory suffix=".php">../../../lib/internal/Magento</directory>
  27. </whitelist>
  28. </filter>
  29. <!-- PHP INI settings and constants definition -->
  30. <php>
  31. <includePath>.</includePath>
  32. <includePath>testsuite</includePath>
  33. <ini name="date.timezone" value="America/Los_Angeles"/>
  34. <ini name="xdebug.max_nesting_level" value="200"/>
  35. <const name="TESTS_INSTALL_CONFIG_FILE" value="{{local_config_file}}"/>
  36. <const name="TESTS_GLOBAL_CONFIG_FILE" value="etc/config-global.php"/>
  37. <const name="TESTS_GLOBAL_CONFIG_DIR" value="../../../app/etc"/>
  38. <const name="TESTS_CLEANUP" value="{{tests_cleanup}}"/>
  39. <const name="TESTS_MAGENTO_MODE" value="{{app_mode}}"/>
  40. <const name="TESTS_ERROR_LOG_LISTENER_LEVEL" value="1"/>
  41. </php>
  42. <!-- Test listeners -->
  43. <listeners>
  44. <listener class="Magento\TestFramework\Event\PhpUnit"/>
  45. <listener class="Magento\TestFramework\ErrorLog\Listener"/>
  46. <listener class="Yandex\Allure\Adapter\AllureAdapter">
  47. <arguments>
  48. <string>var/allure-results</string> <!-- XML files output directory -->
  49. <boolean>true</boolean> <!-- Whether to delete previous results on rerun -->
  50. <array> <!-- A list of custom annotations to ignore (optional) -->
  51. <element key="codingStandardsIgnoreStart">
  52. <string>codingStandardsIgnoreStart</string>
  53. </element>
  54. <element key="codingStandardsIgnoreEnd">
  55. <string>codingStandardsIgnoreEnd</string>
  56. </element>
  57. <element key="expectedExceptionMessageRegExp">
  58. <string>expectedExceptionMessageRegExp</string>
  59. </element>
  60. <element key="magentoAdminConfigFixture">
  61. <string>magentoAdminConfigFixture</string>
  62. </element>
  63. <element key="magentoAppArea">
  64. <string>magentoAppArea</string>
  65. </element>
  66. <element key="magentoAppIsolation">
  67. <string>magentoAppIsolation</string>
  68. </element>
  69. <element key="magentoCache">
  70. <string>magentoCache</string>
  71. </element>
  72. <element key="magentoComponentsDir">
  73. <string>magentoComponentsDir</string>
  74. </element>
  75. <element key="magentoConfigFixture">
  76. <string>magentoConfigFixture</string>
  77. </element>
  78. <element key="magentoDataFixture">
  79. <string>magentoDataFixture</string>
  80. </element>
  81. <element key="magentoDataFixtureBeforeTransaction">
  82. <string>magentoDataFixtureBeforeTransaction</string>
  83. </element>
  84. <element key="magentoDbIsolation">
  85. <string>magentoDbIsolation</string>
  86. </element>
  87. <element key="magentoIndexerDimensionMode">
  88. <string>magentoIndexerDimensionMode</string>
  89. </element>
  90. <element key="moduleName">
  91. <string>moduleName</string>
  92. </element>
  93. <element key="dataProviderFromFile">
  94. <string>dataProviderFromFile</string>
  95. </element>
  96. <element key="magentoSchemaFixture">
  97. <string>magentoSchemaFixture</string>
  98. </element>
  99. </array>
  100. </arguments>
  101. </listener>
  102. </listeners>
  103. </phpunit>