forked from OpenCatalogi/opencatalogi
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathphpunit-unit.xml
More file actions
57 lines (52 loc) · 1.98 KB
/
Copy pathphpunit-unit.xml
File metadata and controls
57 lines (52 loc) · 1.98 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
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="tests/bootstrap-unit.php"
colors="true"
cacheDirectory=".phpunit.cache"
executionOrder="default"
requireCoverageMetadata="false"
beStrictAboutCoverageMetadata="true"
beStrictAboutOutputDuringTests="true"
failOnRisky="false"
failOnWarning="true">
<testsuites>
<testsuite name="Unit Tests">
<directory>tests/Unit</directory>
</testsuite>
</testsuites>
<!--
The @group network tests (DirectoryService::syncDirectory /
BroadcastService::broadcast) exercise the SSRF outbound-URL guard, which performs
real DNS resolution (dns_get_record / gethostbyname) of the target host. They hang
or fail in sandboxed/CI runners without outbound DNS (this is why PHPUnit was
originally disabled in CI; see .github/workflows/code-quality.yml). They are
excluded by default so the unit suite is deterministic and offline-safe; run them
explicitly with the network group in an environment that has outbound DNS.
-->
<groups>
<exclude>
<group>network</group>
</exclude>
</groups>
<source>
<include>
<directory suffix=".php">lib/</directory>
</include>
<exclude>
<directory>lib/Migration/</directory>
<file>lib/AppInfo/Application.php</file>
</exclude>
</source>
<coverage>
<report>
<clover outputFile="coverage/clover.xml"/>
<html outputDirectory="coverage/html"/>
<text outputFile="php://stdout" showUncoveredFiles="false"/>
</report>
</coverage>
<php>
<env name="PHPUNIT_RUN" value="1"/>
<env name="NEXTCLOUD_CONFIG_DIR" value="/var/www/html/config"/>
</php>
</phpunit>