-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpunit.xml.dist
More file actions
58 lines (54 loc) · 2.27 KB
/
Copy pathphpunit.xml.dist
File metadata and controls
58 lines (54 loc) · 2.27 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
<?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="./test/bootstrap.php"
colors="true"
executionOrder="random"
displayDetailsOnTestsThatTriggerErrors="true"
displayDetailsOnTestsThatTriggerNotices="true"
displayDetailsOnTestsThatTriggerWarnings="true"
failOnEmptyTestSuite="true"
failOnWarning="true"
failOnRisky="true"
failOnIncomplete="true">
<!--
512M covers the one-time worse-reflection stub-map build that
runs on first invocation of the suite (phpactor's tolerant-php-
parser walks every jetbrains/phpstorm-stubs file once; the map is
cached to /tmp afterwards). Same value the test target sets via
`php -d memory_limit=`, lifted here so subprocesses that invoke
phpunit directly (notably Infection's initial coverage run) pick
the same ceiling up. PHPUnit applies `ini` directives early
enough to affect the test process; on a /tmp cleanup or a fresh
checkout the default 128M would OOM mid-stub-build.
-->
<php>
<ini name="memory_limit" value="-1"/>
<!--
Mute `[xphp-lsp …]` stderr diagnostics during tests. Infection's
InitialTestsRunner calls $process->stop() the moment the test
subprocess writes anything to stderr; a single stray fwrite kills
the entire mutation run with SIGTERM before any mutant is scored.
See XPHP\Lsp\Stderr, the helper that gates every `[xphp-lsp …]`
line on this env var.
-->
<env name="XPHP_LSP_QUIET" value="1"/>
</php>
<testsuites>
<testsuite name="xphp-lsp">
<directory>test</directory>
</testsuite>
</testsuites>
<!--
Ignore deprecations triggered indirectly by vendor code (notably
thecodingmachine/safe and phpactor/language-server itself under PHP 8.4) —
they're not ours to fix and crowd out signal in the test output.
Our own test code triggering a deprecation still surfaces because PHPUnit
classifies those as "direct" (triggered from the test source directory).
-->
<source ignoreIndirectDeprecations="true">
<include>
<directory>src</directory>
</include>
</source>
</phpunit>