Skip to content

Commit 1eff6f3

Browse files
committed
DD#0000: feat: Added phpunti configs
1 parent 1bb9900 commit 1eff6f3

File tree

3 files changed

+214
-0
lines changed

3 files changed

+214
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
return [
8+
'db-host' => '127.0.0.1',
9+
'db-user' => 'root',
10+
'db-password' => '123123q',
11+
'db-name' => 'magento_integration_tests',
12+
'db-prefix' => '',
13+
'backend-frontname' => 'backend',
14+
'admin-user' => \Magento\TestFramework\Bootstrap::ADMIN_NAME,
15+
'admin-password' => \Magento\TestFramework\Bootstrap::ADMIN_PASSWORD,
16+
'admin-email' => \Magento\TestFramework\Bootstrap::ADMIN_EMAIL,
17+
'admin-firstname' => \Magento\TestFramework\Bootstrap::ADMIN_FIRSTNAME,
18+
'admin-lastname' => \Magento\TestFramework\Bootstrap::ADMIN_LASTNAME,
19+
'amqp-host' => 'localhost',
20+
'amqp-port' => '5672',
21+
'amqp-user' => 'guest',
22+
'amqp-password' => 'guest',
23+
];
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
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/9.1/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+
>
18+
<!-- Test suites definition -->
19+
<testsuites>
20+
<!-- Memory tests run first to prevent influence of other tests on accuracy of memory measurements -->
21+
<testsuite name="Skywire Integration Tests">
22+
<directory>../../../app/code/Skywire/*/Test/Integration</directory>
23+
<!-- <directory>../../../vendor/skywire/*/src/Test/Integration</directory>-->
24+
</testsuite>
25+
</testsuites>
26+
27+
<filter>
28+
<whitelist>
29+
<directory suffix=".php">../../../app/code/Skywire</directory>
30+
<exclude>
31+
<directory>../../../app/code/*/*/Test</directory>
32+
</exclude>
33+
</whitelist>
34+
</filter>
35+
36+
<!-- PHP INI settings and constants definition -->
37+
<php>
38+
<includePath>.</includePath>
39+
<includePath>testsuite</includePath>
40+
<ini name="date.timezone" value="America/Los_Angeles"/>
41+
<ini name="xdebug.max_nesting_level" value="200"/>
42+
<!-- Local XML configuration file ('.dist' extension will be added, if the specified file doesn't exist) -->
43+
<const name="TESTS_INSTALL_CONFIG_FILE" value="etc/install-config-mysql.php"/>
44+
<!-- Local XML configuration file ('.dist' extension will be added, if the specified file doesn't exist) -->
45+
<const name="TESTS_POST_INSTALL_SETUP_COMMAND_CONFIG_FILE" value="etc/post-install-setup-command-config.php"/>
46+
<!-- Local XML configuration file ('.dist' extension will be added, if the specified file doesn't exist) -->
47+
<const name="TESTS_GLOBAL_CONFIG_FILE" value="etc/config-global.php"/>
48+
<!-- Semicolon-separated 'glob' patterns, that match global XML configuration files -->
49+
<const name="TESTS_GLOBAL_CONFIG_DIR" value="../../../app/etc"/>
50+
<!-- Whether to cleanup the application before running tests or not -->
51+
<const name="TESTS_CLEANUP" value="enabled"/>
52+
<!-- Memory usage and estimated leaks thresholds -->
53+
<!--<const name="TESTS_MEM_USAGE_LIMIT" value="1024M"/>-->
54+
<const name="TESTS_MEM_LEAK_LIMIT" value=""/>
55+
<!-- Path to Percona Toolkit bin directory -->
56+
<!--<const name="PERCONA_TOOLKIT_BIN_DIR" value=""/>-->
57+
<!-- CSV Profiler Output file -->
58+
<!--<const name="TESTS_PROFILER_FILE" value="profiler.csv"/>-->
59+
<!-- Bamboo compatible CSV Profiler Output file name -->
60+
<!--<const name="TESTS_BAMBOO_PROFILER_FILE" value="profiler.csv"/>-->
61+
<!-- Metrics for Bamboo Profiler Output in PHP file that returns array -->
62+
<!--<const name="TESTS_BAMBOO_PROFILER_METRICS_FILE" value="../../build/profiler_metrics.php"/>-->
63+
<!-- Whether to output all CLI commands executed by the bootstrap and tests -->
64+
<const name="TESTS_EXTRA_VERBOSE_LOG" value="1"/>
65+
<!-- Magento mode for tests execution. Possible values are "default", "developer" and "production". -->
66+
<const name="TESTS_MAGENTO_MODE" value="developer"/>
67+
<!-- Minimum error log level to listen for. Possible values: -1 ignore all errors, and level constants form http://tools.ietf.org/html/rfc5424 standard -->
68+
<const name="TESTS_ERROR_LOG_LISTENER_LEVEL" value="-1"/>
69+
<!-- Connection parameters for MongoDB library tests -->
70+
<!--<const name="MONGODB_CONNECTION_STRING" value="mongodb://localhost:27017"/>-->
71+
<!--<const name="MONGODB_DATABASE_NAME" value="magento_integration_tests"/>-->
72+
<!-- Connection parameters for RabbitMQ tests -->
73+
<!--<const name="RABBITMQ_MANAGEMENT_PORT" value="15672"/>-->
74+
<!--<const name="TESTS_PARALLEL_RUN" value="1"/>-->
75+
<const name="USE_OVERRIDE_CONFIG" value="enabled"/>
76+
</php>
77+
<!-- Test listeners -->
78+
<!-- Test listeners -->
79+
<listeners>
80+
<listener class="Yandex\Allure\PhpUnit\AllurePhpUnit">
81+
<arguments>
82+
<string>var/allure-results</string> <!-- XML files output directory -->
83+
<boolean>true</boolean> <!-- Whether to delete previous results on rerun -->
84+
<array> <!-- A list of custom annotations to ignore (optional) -->
85+
<element key="codingStandardsIgnoreStart">
86+
<string>codingStandardsIgnoreStart</string>
87+
</element>
88+
<element key="codingStandardsIgnoreEnd">
89+
<string>codingStandardsIgnoreEnd</string>
90+
</element>
91+
<element key="expectedExceptionMessageRegExp">
92+
<string>expectedExceptionMessageRegExp</string>
93+
</element>
94+
<element key="magentoAdminConfigFixture">
95+
<string>magentoAdminConfigFixture</string>
96+
</element>
97+
<element key="magentoAppArea">
98+
<string>magentoAppArea</string>
99+
</element>
100+
<element key="magentoAppIsolation">
101+
<string>magentoAppIsolation</string>
102+
</element>
103+
<element key="magentoCache">
104+
<string>magentoCache</string>
105+
</element>
106+
<element key="magentoComponentsDir">
107+
<string>magentoComponentsDir</string>
108+
</element>
109+
<element key="magentoConfigFixture">
110+
<string>magentoConfigFixture</string>
111+
</element>
112+
<element key="magentoDataFixture">
113+
<string>magentoDataFixture</string>
114+
</element>
115+
<element key="magentoDataFixtureBeforeTransaction">
116+
<string>magentoDataFixtureBeforeTransaction</string>
117+
</element>
118+
<element key="magentoDbIsolation">
119+
<string>magentoDbIsolation</string>
120+
</element>
121+
<element key="magentoIndexerDimensionMode">
122+
<string>magentoIndexerDimensionMode</string>
123+
</element>
124+
</array>
125+
</arguments>
126+
</listener>
127+
<!-- Run after AllureAdapter to allow it to initialize properly -->
128+
<listener class="Magento\TestFramework\Event\PhpUnit"/>
129+
<listener class="Magento\TestFramework\ErrorLog\Listener"/>
130+
</listeners>
131+
</phpunit>
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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/9.1/phpunit.xsd"
10+
colors="true"
11+
columns="max"
12+
beStrictAboutTestsThatDoNotTestAnything="false"
13+
bootstrap="./framework/bootstrap.php"
14+
>
15+
<testsuites>
16+
<testsuite name="Skywire">
17+
<directory>../../../app/code/Skywire/*/Test/Unit</directory>
18+
</testsuite>
19+
</testsuites>
20+
<php>
21+
<ini name="date.timezone" value="America/Los_Angeles"/>
22+
<ini name="xdebug.max_nesting_level" value="200"/>
23+
</php>
24+
<filter>
25+
<whitelist>
26+
<directory suffix=".php">../../../app/code/*</directory>
27+
<directory suffix=".php">../../../lib/internal/Magento</directory>
28+
<directory suffix=".php">../../../setup/src/*</directory>
29+
<exclude>
30+
<directory>../../../app/code/*/*/Test</directory>
31+
<directory>../../../lib/internal/*/*/Test</directory>
32+
<directory>../../../lib/internal/*/*/*/Test</directory>
33+
<directory>../../../setup/src/*/*/Test</directory>
34+
</exclude>
35+
</whitelist>
36+
</filter>
37+
<listeners>
38+
<listener class="Yandex\Allure\PhpUnit\AllurePhpUnit">
39+
<arguments>
40+
<string>var/allure-results</string> <!-- XML files output directory -->
41+
<boolean>true</boolean> <!-- Whether to delete previous results on rerun -->
42+
<array> <!-- A list of custom annotations to ignore (optional) -->
43+
<element key="codingStandardsIgnoreStart">
44+
<string>codingStandardsIgnoreStart</string>
45+
</element>
46+
<element key="codingStandardsIgnoreEnd">
47+
<string>codingStandardsIgnoreEnd</string>
48+
</element>
49+
<element key="cover">
50+
<string>cover</string>
51+
</element>
52+
<element key="expectedExceptionMessageRegExp">
53+
<string>expectedExceptionMessageRegExp</string>
54+
</element>
55+
</array>
56+
</arguments>
57+
</listener>
58+
<listener class="Magento\Framework\TestFramework\Unit\Listener\ReplaceObjectManager"/>
59+
</listeners>
60+
</phpunit>

0 commit comments

Comments
 (0)