-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathphpunit.xml
More file actions
56 lines (56 loc) · 2.36 KB
/
Copy pathphpunit.xml
File metadata and controls
56 lines (56 loc) · 2.36 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
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
bootstrap="tests/bootstrap.php"
colors="true"
cacheDirectory=".phpunit.cache"
executionOrder="depends,defects"
beStrictAboutOutputDuringTests="true"
failOnRisky="true"
failOnWarning="true">
<testsuites>
<testsuite name="Unit">
<directory>./tests/Unit</directory>
</testsuite>
<!--
Integration runs against a REAL Nextcloud + groupfolders and therefore
needs its own bootstrap (the default one loads OCP stubs, which is the
opposite of what these tests are for). PHPUnit has one bootstrap per
config file, so the suite is driven by phpunit-integration.xml via
scripts/run-integration-tests.sh. This entry is kept so the directory
is still discoverable. Running it from THIS config will not work:
the stub bootstrap is loaded and the tests skip themselves.
-->
<testsuite name="Integration">
<directory>./tests/Integration</directory>
</testsuite>
<!--
Benchmarks are measurements, not pass/fail tests, and they print a
table to STDERR. Kept out of the default run (and out of CI) so they
never gate a release; run them explicitly by passing the Benchmark
testsuite on the command line.
-->
<testsuite name="Benchmark">
<directory suffix="Benchmark.php">./tests/Benchmark</directory>
</testsuite>
</testsuites>
<!--
No coverage report block here on purpose: it would make every run try to
produce a coverage report, which emits a "No code coverage driver
available" warning when Xdebug/PCOV is absent. With failOnWarning="true"
that turns a fully passing run into a non-zero exit. Request coverage
explicitly instead via `composer test:coverage`, which enables it on the
command line.
-->
<source>
<include>
<directory suffix=".php">./lib</directory>
</include>
<exclude>
<directory>./lib/Migration</directory>
</exclude>
</source>
<php>
<env name="NEXTCLOUD_ROOT" value="/var/www/nextcloud"/>
</php>
</phpunit>