-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpunit.dist.xml
More file actions
41 lines (39 loc) · 1.67 KB
/
Copy pathphpunit.dist.xml
File metadata and controls
41 lines (39 loc) · 1.67 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
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="tests/bootstrap.php"
colors="true"
cacheDirectory="tests/.cache/phpunit"
executionOrder="depends,defects"
requireCoverageMetadata="true"
beStrictAboutCoverageMetadata="true"
beStrictAboutOutputDuringTests="true"
failOnRisky="true"
failOnWarning="true"
defaultTestSuite="Unit">
<!-- Every test (Unit and Integration) declares a coverage target via #[CoversClass]/#[CoversFunction]/
#[CoversNothing]; requireCoverageMetadata enforces it so mutation MSI stays honest. beStrictAboutCoverageMetadata
only bites under coverage collection, which the plain Unit/Integration runs do not perform; the integration
mutation profile uses tests/mutation/phpunit.dist.xml (beStrict off) because integration tests execute
undeclared WordPress code once coverage is collected. -->
<testsuites>
<testsuite name="Unit">
<directory>packages/*/tests/Unit</directory>
<directory>packages/infrastructure/tests/*/Unit</directory>
</testsuite>
<testsuite name="Integration">
<directory>packages/*/tests/Integration</directory>
<directory>packages/infrastructure/tests/*/Integration</directory>
</testsuite>
</testsuites>
<php>
<!-- The integration suite boots WordPress + WooCommerce per process; raise the limit above the
container default so the full run, and the shutdown error handlers, stay within budget. -->
<ini name="memory_limit" value="512M"/>
</php>
<source>
<include>
<directory>packages/*/src</directory>
</include>
</source>
</phpunit>