forked from shopware/shopware
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpunit.xml.dist
More file actions
240 lines (230 loc) · 16 KB
/
Copy pathphpunit.xml.dist
File metadata and controls
240 lines (230 loc) · 16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd"
bootstrap="src/Core/TestBootstrap.php"
cacheDirectory=".phpunit.cache"
cacheResult="false"
displayDetailsOnPhpunitDeprecations="true"
displayDetailsOnTestsThatTriggerWarnings="true"
displayDetailsOnTestsThatTriggerDeprecations="true"
executionOrder="random"
failOnRisky="true">
<coverage includeUncoveredFiles="true"/>
<source ignoreSuppressionOfDeprecations="true"
ignoreIndirectDeprecations="true"
restrictNotices="true"
restrictWarnings="true">
<deprecationTrigger>
<function>trigger_deprecation</function>
<method>Doctrine\Deprecations\Deprecation::trigger</method>
<method>Doctrine\Deprecations\Deprecation::delegateTriggerToBackend</method>
</deprecationTrigger>
<include>
<directory suffix=".php">src</directory>
</include>
<exclude>
<file>src/Administration/Events/PreResetExcludedSearchTermEvent.php</file>
<file>src/Core/Content/Resources/config/routes_test.php</file>
<directory suffix=".php">src/Core/Content/Cms/DataResolver/ResolverContext/</directory>
<directory suffix=".php">src/Core/Content/Cms/Extension/</directory>
<!-- Static-analysis tooling; the Danger rules stay covered by their unit tests. -->
<directory suffix=".php">src/Core/DevOps/StaticAnalyze/PHPStan</directory>
<file>src/Core/DevOps/StaticAnalyze/StaticAnalyzeKernel.php</file>
<file>src/Core/DevOps/StaticAnalyze/console-application.php</file>
<file>src/Core/DevOps/StaticAnalyze/phpstan-bootstrap.php</file>
<file>src/Core/DevOps/StaticAnalyze/print-ignored-errors-by-area.php</file>
<!-- All fixtures, stubs, traits used for tests -->
<directory suffix=".php">src/Core/Content/Test</directory>
<!-- Only the test fixtures under DevOps/Test; the tooling classes stay covered by their unit tests. -->
<directory suffix=".php">src/Core/DevOps/Test/Environment</directory>
<!-- src/Core/Framework/Test: shipped test support; only the classes with dedicated
unit tests (MemoryAdapterFactory, EnvTestBehaviour, ReflectionHelper) count toward coverage -->
<directory suffix=".php">src/Core/Framework/Test/Api</directory>
<directory suffix=".php">src/Core/Framework/Test/App</directory>
<directory suffix=".php">src/Core/Framework/Test/DataAbstractionLayer</directory>
<directory suffix=".php">src/Core/Framework/Test/DependencyInjection</directory>
<directory suffix=".php">src/Core/Framework/Test/Logging</directory>
<directory suffix=".php">src/Core/Framework/Test/MessageQueue</directory>
<directory suffix=".php">src/Core/Framework/Test/Migration</directory>
<directory suffix=".php">src/Core/Framework/Test/Plugin</directory>
<directory suffix=".php">src/Core/Framework/Test/RateLimiter</directory>
<directory suffix=".php">src/Core/Framework/Test/Script</directory>
<directory suffix=".php">src/Core/Framework/Test/Seo</directory>
<directory suffix=".php">src/Core/Framework/Test/Store</directory>
<directory suffix=".php">src/Core/Framework/Test/Telemetry</directory>
<directory suffix=".php">src/Core/Framework/Test/Webhook</directory>
<file>src/Core/Framework/Test/RemoveDeprecatedServicesPass.php</file>
<file>src/Core/Framework/Test/TestBundle.php</file>
<file>src/Core/Framework/Test/TestCacheClearer.php</file>
<file>src/Core/Framework/Test/TestKernel.php</file>
<file>src/Core/Framework/Test/TestSessionStorage.php</file>
<file>src/Core/Framework/Test/TestSessionStorageFactory.php</file>
<file>src/Core/Framework/Test/TestCaseBase/AdminApiTestBehaviour.php</file>
<file>src/Core/Framework/Test/TestCaseBase/AdminFunctionalTestBehaviour.php</file>
<file>src/Core/Framework/Test/TestCaseBase/BasicTestDataBehaviour.php</file>
<file>src/Core/Framework/Test/TestCaseBase/CacheTestBehaviour.php</file>
<file>src/Core/Framework/Test/TestCaseBase/CountryAddToSalesChannelTestBehaviour.php</file>
<file>src/Core/Framework/Test/TestCaseBase/DatabaseTransactionBehaviour.php</file>
<file>src/Core/Framework/Test/TestCaseBase/EventDispatcherBehaviour.php</file>
<file>src/Core/Framework/Test/TestCaseBase/EventDispatcherWrapper.php</file>
<file>src/Core/Framework/Test/TestCaseBase/FilesystemBehaviour.php</file>
<file>src/Core/Framework/Test/TestCaseBase/IntegrationTestBehaviour.php</file>
<file>src/Core/Framework/Test/TestCaseBase/KernelLifecycleManager.php</file>
<file>src/Core/Framework/Test/TestCaseBase/KernelTestBehaviour.php</file>
<file>src/Core/Framework/Test/TestCaseBase/MailTemplateTestBehaviour.php</file>
<file>src/Core/Framework/Test/TestCaseBase/QueueTestBehaviour.php</file>
<file>src/Core/Framework/Test/TestCaseBase/RequestStackTestBehaviour.php</file>
<file>src/Core/Framework/Test/TestCaseBase/SalesChannelApiTestBehaviour.php</file>
<file>src/Core/Framework/Test/TestCaseBase/SalesChannelFunctionalTestBehaviour.php</file>
<file>src/Core/Framework/Test/TestCaseBase/SessionTestBehaviour.php</file>
<file>src/Core/Framework/Test/TestCaseBase/TaxAddToSalesChannelTestBehaviour.php</file>
<file>src/Core/Framework/Test/TestCaseBase/TranslationTestBehaviour.php</file>
<file>src/Core/Framework/Test/TestCaseHelper/AssertResponseHelper.php</file>
<file>src/Core/Framework/Test/TestCaseHelper/CallableClass.php</file>
<file>src/Core/Framework/Test/TestCaseHelper/ExtensionHelper.php</file>
<file>src/Core/Framework/Test/TestCaseHelper/StopWorkerWhenIdleListener.php</file>
<file>src/Core/Framework/Test/TestCaseHelper/StoreApiSessionListener.php</file>
<file>src/Core/Framework/Test/TestCaseHelper/TestBrowser.php</file>
<file>src/Core/Framework/Test/TestCaseHelper/TestUser.php</file>
<directory suffix=".php">src/Core/Migration/Test</directory>
<directory suffix=".php">src/Core/Migration/Traits</directory>
<directory suffix=".php">src/Core/Test/Annotation</directory>
<directory suffix=".php">src/Core/Test/Constraint</directory>
<directory suffix=".php">src/Core/Test/Integration</directory>
<!-- src/Core/Test/Stub: shipped test doubles; only the stubs with dedicated unit tests count toward coverage -->
<directory suffix=".php">src/Core/Test/Stub/Checkout</directory>
<directory suffix=".php">src/Core/Test/Stub/Flow</directory>
<directory suffix=".php">src/Core/Test/Stub/Framework/Adapter</directory>
<directory suffix=".php">src/Core/Test/Stub/Framework/DataAbstractionLayer</directory>
<directory suffix=".php">src/Core/Test/Stub/Installer</directory>
<directory suffix=".php">src/Core/Test/Stub/MessageBus</directory>
<directory suffix=".php">src/Core/Test/Stub/Redis</directory>
<directory suffix=".php">src/Core/Test/Stub/Rule</directory>
<directory suffix=".php">src/Core/Test/Stub/Symfony</directory>
<directory suffix=".php">src/Core/Test/Stub/System</directory>
<directory suffix=".php">src/Core/Test/Stub/SystemConfigService</directory>
<directory suffix=".php">src/Core/Test/Stub/Translator</directory>
<file>src/Core/Test/Stub/DataAbstractionLayer/StaticDefinitionInstanceRegistry.php</file>
<file>src/Core/Test/Stub/DataAbstractionLayer/StaticEntityRepository.php</file>
<file>src/Core/Test/Stub/DataAbstractionLayer/StaticEntityWriter.php</file>
<file>src/Core/Test/Stub/DataAbstractionLayer/StaticEntityWriterGateway.php</file>
<file>src/Core/Test/Stub/DataAbstractionLayer/StaticSalesChannelRepository.php</file>
<file>src/Core/Test/Stub/Doctrine/FailingDeleteConnection.php</file>
<file>src/Core/Test/Stub/Doctrine/FakeConnection.php</file>
<file>src/Core/Test/Stub/Doctrine/FakeQueryBuilder.php</file>
<file>src/Core/Test/Stub/Doctrine/TestExceptionFactory.php</file>
<file>src/Core/Test/Stub/EventDispatcher/AssertingEventDispatcher.php</file>
<file>src/Core/Test/Stub/Framework/BundleFixture.php</file>
<file>src/Core/Test/Stub/Framework/Util/InMemoryUtilFilesystem.php</file>
<file>src/Core/Test/Stub/Framework/Util/NullRawDefinitionHtmlPurifierConfig.php</file>
<file>src/Core/Test/Stub/Framework/Util/StaticHtmlPurifierConfigProvider.php</file>
<file>src/Core/Test/AppSystemTestBehaviour.php</file>
<file>src/Core/Test/FixtureLoader.php</file>
<file>src/Core/Test/Generator.php</file>
<file>src/Core/Test/TestBuilderTrait.php</file>
<file>src/Core/Test/TestDefaults.php</file>
<!-- phpunit runtime bootstrap and outbound IO, exercised by every CI run and not unit-testable:
the extensions wire subscribers before the framework is up, the gateway talks to Datadog -->
<file>src/Core/Test/PHPUnit/Extension/DatabaseDiff/DatabaseDiffExtension.php</file>
<file>src/Core/Test/PHPUnit/Extension/Datadog/DatadogExtension.php</file>
<file>src/Core/Test/PHPUnit/Extension/Datadog/Gateway/DatadogGateway.php</file>
<directory suffix=".php">src/Elasticsearch/Test</directory>
<directory suffix=".php">src/Storefront/Test</directory>
<!-- All former migrations -->
<directory suffix=".php">src/Administration/Migration/V6_4</directory>
<directory suffix=".php">src/Core/Migration/V6_3</directory>
<directory suffix=".php">src/Core/Migration/V6_4</directory>
<directory suffix=".php">src/Core/Migration/V6_5</directory>
<directory suffix=".php">src/Elasticsearch/Migration/V6_5</directory>
<directory suffix=".php">src/Storefront/Migration/V6_3</directory>
<directory suffix=".php">src/Storefront/Migration/V6_4</directory>
<directory suffix=".php">src/Storefront/Migration/V6_5</directory>
<!-- Helper class and its output DTOs and exception, which could not be unit tested -->
<directory suffix=".php">src/Core/Framework/Util/Database</directory>
<!-- BC-change attributes are data-only markers without behavior to test -->
<directory suffix=".php">src/Core/Framework/Deprecation/BCChange</directory>
</exclude>
</source>
<php>
<ini name="error_reporting" value="-1"/>
<ini name="memory_limit" value="-1"/>
<server name="KERNEL_CLASS" value="Shopware\Core\Kernel"/>
<server name="APP_ENV" value="test"/>
<env name="APP_ENV" value="test"/>
<env name="APP_DEBUG" value="1"/>
<env name="APP_SECRET" value="def00000bb5acb32b54ff8ee130270586eec0e878f7337dc7a837acc31d3ff00f93a56b595448b4b29664847dd51991b3314ff65aeeeb761a133b0ec0e070433bff08e48"/>
<env name="SHOPWARE_HTTP_CACHE_ENABLED" value="0"/>
<env name="SHELL_VERBOSITY" value="-1"/>
<server name="TESTS_RUNNING" value="1"/>
<server name="MAILER_URL" value="null://localhost"/>
<server name="HTTPS" value="off"/>
</php>
<testsuites>
<testsuite name="unit">
<directory>tests/unit</directory>
</testsuite>
<testsuite name="integration">
<directory>tests/integration</directory>
</testsuite>
<!-- Tests that need a real Redis (nightly redis job); new redis tests must be listed here — the RedisGroupUsage Danger rule points authors to this suite -->
<testsuite name="redis">
<file>tests/integration/Core/Checkout/Cart/RedisCartPersisterTest.php</file>
<file>tests/integration/Core/Framework/Adapter/Cache/InvalidatorStorage/RedisInvalidatorStorageTest.php</file>
<file>tests/integration/Core/Framework/Adapter/Cache/RedisConnectionFactoryTest.php</file>
<file>tests/integration/Core/Framework/Increment/RedisIncrementerTest.php</file>
</testsuite>
<!-- Framework is split in sub suites to improve the pipeline efficiency -->
<testsuite name="core-framework-batch1">
<file>tests/integration/Core/Framework/AdditionalPermissionValidationTest.php</file>
<file>tests/integration/Core/Framework/ApiRoutesHaveASchemaTest.php</file>
<file>tests/integration/Core/Framework/KernelTest.php</file>
<directory>tests/integration/Core/Framework/Adapter</directory>
<directory>tests/integration/Core/Framework/Api</directory>
<directory>tests/integration/Core/Framework/App</directory>
<directory>tests/integration/Core/Framework/CustomField</directory>
<directory>tests/integration/Core/Framework/Mcp</directory>
<directory>tests/integration/Core/Framework/Validation</directory>
</testsuite>
<testsuite name="core-framework-batch2">
<directory>tests/integration/Core/Framework/DataAbstractionLayer</directory>
<directory>tests/integration/Core/Framework/Demodata</directory>
<directory>tests/integration/Core/Framework/Feature</directory>
<directory>tests/integration/Core/Framework/FeatureFlag</directory>
<directory>tests/integration/Core/Framework/Increment</directory>
<directory>tests/integration/Core/Framework/Language</directory>
<directory>tests/integration/Core/Framework/Log</directory>
<directory>tests/integration/Core/Framework/MessageQueue</directory>
<directory>tests/integration/Core/Framework/Migration</directory>
<directory>tests/integration/Core/Framework/Notification</directory>
</testsuite>
<testsuite name="core-framework-batch3">
<directory>tests/integration/Core/Framework/Plugin</directory>
<directory>tests/integration/Core/Framework/RateLimiter</directory>
<directory>tests/integration/Core/Framework/Routing</directory>
<directory>tests/integration/Core/Framework/Rule</directory>
<directory>tests/integration/Core/Framework/Script</directory>
<directory>tests/integration/Core/Framework/Seo</directory>
<directory>tests/integration/Core/Framework/Sso</directory>
<directory>tests/integration/Core/Framework/Store</directory>
<directory>tests/integration/Core/Framework/Telemetry</directory>
<directory>tests/integration/Core/Framework/TestCaseBase</directory>
<directory>tests/integration/Core/Framework/Translation</directory>
<directory>tests/integration/Core/Framework/Update</directory>
<directory>tests/integration/Core/Framework/Util</directory>
<directory>tests/integration/Core/Framework/Webhook</directory>
</testsuite>
<testsuite name="devops">
<directory>tests/devops</directory>
</testsuite>
<testsuite name="migration">
<directory>tests/migration</directory>
</testsuite>
</testsuites>
<extensions>
<bootstrap class="Ergebnis\PHPUnit\SlowTestDetector\Extension"/>
<bootstrap class="Shopware\Core\Test\PHPUnit\Extension\FeatureFlag\FeatureFlagExtension"/>
<bootstrap class="Shopware\Core\Test\PHPUnit\Extension\Datadog\DatadogExtension"/>
<!-- Enable to see the db side effects of the tests. -->
<!-- <bootstrap class="Shopware\Core\Test\PHPUnit\Extension\DatabaseDiff\DatabaseDiffExtension"/>-->
</extensions>
</phpunit>