Repository navigation
Expand file tree
/
Copy pathphpunit.xml
More file actions
110 lines (110 loc) · 6.2 KB
/
Copy pathphpunit.xml
File metadata and controls
110 lines (110 loc) · 6.2 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
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
cacheDirectory=".phpunit.cache"
testdox="true"
failOnRisky="true"
displayDetailsOnSkippedTests="true"
displayDetailsOnTestsThatTriggerWarnings="true">
<testsuites>
<testsuite name="Unit">
<directory>tests/Unit</directory>
<exclude>tests/Unit/Grpc/GrpcClientTest.php</exclude>
<exclude>tests/Unit/Grpc/GrpcClientTimevalDeadlineTest.php</exclude>
<exclude>tests/Unit/Grpc/GrpcClientChannelIsolationTest.php</exclude>
<exclude>tests/Unit/Grpc/GrpcClientIdleSweepTest.php</exclude>
<exclude>tests/Unit/Grpc/GrpcClientChannelCapTest.php</exclude>
<exclude>tests/Unit/Grpc/GrpcClientTlsReconnectTest.php</exclude>
<exclude>tests/Unit/Grpc/GrpcClientForceReconnectTest.php</exclude>
<exclude>tests/Unit/Grpc/RawKvBatchMetricsTest.php</exclude>
<exclude>tests/Unit/Grpc/GrpcClientRpcCompletionTest.php</exclude>
<exclude>tests/Unit/Grpc/GrpcClientStreamingTest.php</exclude>
<exclude>tests/Unit/Grpc/BatchCommandsConnectionDeadlineTest.php</exclude>
<exclude>tests/Unit/Batch/GrpcFutureTest.php</exclude>
<exclude>tests/Unit/RawKv/RawKvBatchTest.php</exclude>
<exclude>tests/Unit/RawKv/RawKvBatchConcurrencyCapTest.php</exclude>
<exclude>tests/Unit/RawKv/RawKvClientTest.php</exclude>
<exclude>tests/Unit/Batch/BatchAsyncExecutorTest.php</exclude>
<exclude>tests/Unit/Batch/CheckedGrpcFutureTest.php</exclude>
<exclude>tests/Unit/RawKv/SstIngestorTest.php</exclude>
<exclude>tests/Unit/RawKv/RawKvBatchBatchCommandsGrpcTest.php</exclude>
<exclude>tests/Unit/E2E/ClusterProbeTest.php</exclude>
</testsuite>
<testsuite name="Grpc">
<!-- The gRPC-dependent classes live here (they mock \Grpc\Call and
need ext-grpc, which the unit-tests CI job does not install).
ParallelRangeOpsCapTest and
CheckedGrpcFutureRetryableDispatchTest are pure PHP: they run
in the Unit suite (no ext needed) and are deliberately NOT
listed here again — a file that is in two selected suites
makes PHPUnit emit "Cannot add file ... as it was already
added to test suite ...", which fails the run that selects
both suites (the CI coverage job). -->
<file>tests/Unit/Grpc/GrpcClientTest.php</file>
<file>tests/Unit/Grpc/GrpcClientTimevalDeadlineTest.php</file>
<file>tests/Unit/Grpc/GrpcClientChannelIsolationTest.php</file>
<file>tests/Unit/Grpc/GrpcClientIdleSweepTest.php</file>
<file>tests/Unit/Grpc/GrpcClientChannelCapTest.php</file>
<file>tests/Unit/Grpc/GrpcClientTlsReconnectTest.php</file>
<file>tests/Unit/Grpc/GrpcClientForceReconnectTest.php</file>
<file>tests/Unit/Grpc/RawKvBatchMetricsTest.php</file>
<file>tests/Unit/Grpc/GrpcClientRpcCompletionTest.php</file>
<file>tests/Unit/Grpc/GrpcClientStreamingTest.php</file>
<file>tests/Unit/Grpc/BatchCommandsConnectionDeadlineTest.php</file>
<file>tests/Unit/Batch/GrpcFutureTest.php</file>
<file>tests/Unit/RawKv/RawKvBatchTest.php</file>
<file>tests/Unit/RawKv/RawKvBatchConcurrencyCapTest.php</file>
<file>tests/Unit/RawKv/RawKvClientTest.php</file>
<file>tests/Unit/Batch/BatchAsyncExecutorTest.php</file>
<file>tests/Unit/Batch/CheckedGrpcFutureTest.php</file>
<file>tests/Unit/RawKv/RawKvBatchBatchCommandsGrpcTest.php</file>
<file>tests/Unit/RawKv/SstIngestorTest.php</file>
<!-- ClusterProbe builds a real gRPC channel, so its fail-fast
test needs ext-grpc (issue #730). -->
<file>tests/Unit/E2E/ClusterProbeTest.php</file>
</testsuite>
<testsuite name="Integration">
<directory>tests/Integration</directory>
</testsuite>
<testsuite name="E2E-RawKV">
<directory>tests/E2E</directory>
<exclude>tests/E2E/TxnKvE2ETest.php</exclude>
<exclude>tests/E2E/GcSafePointE2ETest.php</exclude>
<exclude>tests/E2E/FastCommitModesE2ETest.php</exclude>
<exclude>tests/E2E/PdFailoverE2ETest.php</exclude>
<exclude>tests/E2E/ResourceControlTxnKvE2ETest.php</exclude>
<exclude>tests/E2E/ApiV2E2ETest.php</exclude>
</testsuite>
<testsuite name="E2E-TxnKV">
<file>tests/E2E/TxnKvE2ETest.php</file>
<file>tests/E2E/GcSafePointE2ETest.php</file>
<file>tests/E2E/FastCommitModesE2ETest.php</file>
<file>tests/E2E/PdFailoverE2ETest.php</file>
<file>tests/E2E/ResourceControlTxnKvE2ETest.php</file>
</testsuite>
<testsuite name="E2E-ApiV2">
<file>tests/E2E/ApiV2E2ETest.php</file>
</testsuite>
</testsuites>
<source>
<include>
<directory>src</directory>
</include>
<!-- The generated protobuf/gRPC classes are not hand-written code:
nobody writes tests for them, so counting them would drag the
reported percentage down by more than half and make the coverage
floor measure the generated code instead of the client. -->
<exclude>
<directory>src/Proto</directory>
</exclude>
</source>
<!-- Coverage is opt-in on the command line. A coverage report block
here would make every plain `vendor/bin/phpunit` run request a
coverage driver and write coverage.xml / coverage-html/, so the run
exits 1 with "XDEBUG_MODE=coverage ... has to be set" on the
documented local setup although every test passed (issue #556).
`composer test:coverage` and the CI coverage job pass the Clover
report option on the command line instead. -->
</phpunit>