Repository navigation
Expand file tree
/
Copy pathphpunit.pgsql.xml
More file actions
88 lines (87 loc) · 4.63 KB
/
Copy pathphpunit.pgsql.xml
File metadata and controls
88 lines (87 loc) · 4.63 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
The test suites on PostgreSQL 15, the database of production. The SQLite run of phpunit.xml hides
boolean, CHECK constraint and foreign key behavior. AGENTS.md ("Keep tests stable") has the commands.
Set DB_HOST, DB_PORT, DB_USERNAME or DB_PASSWORD in the environment for another server. The database
name is forced, so a run never wipes a Coolify database: RefreshDatabase drops every table.
CI: .github/workflows/tests-pgsql.yaml checks the run against tests/known-failures-pgsql.txt.
-->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true">
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
<testsuite name="Feature">
<directory suffix="Test.php">./tests/Feature</directory>
</testsuite>
<testsuite name="v4">
<directory suffix="Test.php">./tests/v4</directory>
</testsuite>
<testsuite name="Golden">
<directory suffix="Test.php">./tests/Golden</directory>
</testsuite>
<!--
The 3 shards of the CI jobs. Together they hold the Feature, Unit, and Golden tests once. Feature files
are split by the first letter of the file name, so that the shards take about as long on PostgreSQL
(CI run of 2026-12-05: 1383 s, 1335 s and 1310 s of test time). A test file whose name does not start
with A to Z is in no shard, and the ratchet of the CI job then fails.
-->
<testsuite name="Shard1">
<directory prefix="A" suffix="Test.php">./tests/Feature</directory>
<directory prefix="B" suffix="Test.php">./tests/Feature</directory>
<directory prefix="C" suffix="Test.php">./tests/Feature</directory>
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
<testsuite name="Shard2">
<directory prefix="D" suffix="Test.php">./tests/Feature</directory>
<directory prefix="E" suffix="Test.php">./tests/Feature</directory>
<directory prefix="F" suffix="Test.php">./tests/Feature</directory>
<directory prefix="G" suffix="Test.php">./tests/Feature</directory>
<directory prefix="H" suffix="Test.php">./tests/Feature</directory>
<directory prefix="I" suffix="Test.php">./tests/Feature</directory>
<directory prefix="J" suffix="Test.php">./tests/Feature</directory>
<directory prefix="K" suffix="Test.php">./tests/Feature</directory>
<directory prefix="L" suffix="Test.php">./tests/Feature</directory>
<directory prefix="M" suffix="Test.php">./tests/Feature</directory>
<directory prefix="N" suffix="Test.php">./tests/Feature</directory>
<directory prefix="O" suffix="Test.php">./tests/Feature</directory>
<directory prefix="P" suffix="Test.php">./tests/Feature</directory>
<directory suffix="Test.php">./tests/Golden</directory>
</testsuite>
<testsuite name="Shard3">
<directory prefix="Q" suffix="Test.php">./tests/Feature</directory>
<directory prefix="R" suffix="Test.php">./tests/Feature</directory>
<directory prefix="S" suffix="Test.php">./tests/Feature</directory>
<directory prefix="T" suffix="Test.php">./tests/Feature</directory>
<directory prefix="U" suffix="Test.php">./tests/Feature</directory>
<directory prefix="V" suffix="Test.php">./tests/Feature</directory>
<directory prefix="W" suffix="Test.php">./tests/Feature</directory>
<directory prefix="X" suffix="Test.php">./tests/Feature</directory>
<directory prefix="Y" suffix="Test.php">./tests/Feature</directory>
<directory prefix="Z" suffix="Test.php">./tests/Feature</directory>
</testsuite>
</testsuites>
<coverage/>
<php>
<env name="APP_ENV" value="testing"/>
<env name="BCRYPT_ROUNDS" value="4"/>
<env name="CACHE_DRIVER" value="array" force="true"/>
<env name="DB_CONNECTION" value="pgsql" force="true"/>
<env name="DB_DATABASE" value="coolify_testing" force="true"/>
<env name="DATABASE_URL" value="" force="true"/>
<env name="DB_HOST" value="127.0.0.1"/>
<env name="DB_PORT" value="5432"/>
<env name="DB_USERNAME" value="postgres"/>
<env name="DB_PASSWORD" value="postgres"/>
<env name="MAIL_MAILER" value="array" force="true"/>
<env name="QUEUE_CONNECTION" value="sync" force="true"/>
<env name="SESSION_DRIVER" value="array" force="true"/>
<!-- Disable broadcasting for host-side Pest browser runs. -->
<env name="BROADCAST_DRIVER" value="null" force="true"/>
</php>
<source>
<include>
<directory suffix=".php">./app</directory>
</include>
</source>
</phpunit>