-
Notifications
You must be signed in to change notification settings - Fork 116
/
phpunit.xml.dist
55 lines (51 loc) · 2.09 KB
/
phpunit.xml.dist
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
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
colors="true"
cacheDirectory=".phpunit.cache"
bootstrap="tests/bootstrap.php"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
>
<testsuites>
<testsuite name="migrations">
<directory>tests/TestCase</directory>
<exclude>tests/TestCase/TestSuite</exclude>
<exclude>tests/TestCase/Migration/ManagerTest.php</exclude>
</testsuite>
<testsuite name="migrator">
<directory>tests/TestCase/TestSuite</directory>
</testsuite>
<!-- Has to run last individually as these tests drop the database -->
<testsuite name="manager">
<file>tests/TestCase/Migration/ManagerTest.php</file>
</testsuite>
</testsuites>
<extensions>
<bootstrap class="Cake\TestSuite\Fixture\Extension\PHPUnitExtension"/>
</extensions>
<!-- Prevent coverage reports from looking in tests, vendors, config folders -->
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
<php>
<env name="FIXTURE_SCHEMA_METADATA" value="./tests/schema.php"/>
<ini name="memory_limit" value="-1"/>
<!-- SQLite
<env name="DB" value="sqlite"/>
<env name="DB_URL" value="sqlite://127.0.0.1/tests.sqlite"/>
<env name="DB_URL_SNAPSHOT" value="sqlite://127.0.0.1/snapshot-tests.sqlite"/>
-->
<!-- Postgres
<env name="DB" value="pgsql"/>
<env name="DB_URL" value="postgres://localhost/cake_test?timezone=UTC"/>
<env name="DB_URL_SNAPSHOT" value="postgres://localhost/cake_snapshot_test?timezone=UTC"/>
-->
<!-- Mysql
<env name="DB" value="mysql"/>
<env name="DB_URL" value="mysql://localhost/cake_test?timezone=UTC"/>
<env name="DB_URL_COMPARE" value="mysql://localhost/cake_comparison"/>
<env name="DB_URL_SNAPSHOT" value="mysql://localhost/cake_snapshot"/>
-->
</php>
</phpunit>