-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpunit.xml.dist
38 lines (38 loc) · 1.4 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
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./tests/bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
<exclude>
<directory>src/DataMapper/Exception</directory>
<directory>src/Traits</directory>
<file>src/Http/Exception.php</file>
<file>src/Parameter/Exception.php</file>
<file>src/Service/Exception.php</file>
<file>src/functions.php</file>
<file>src/constant.php</file>
</exclude>
</coverage>
<testsuites>
<testsuite name="Core">
<directory suffix="Test.php">./tests/Core</directory>
</testsuite>
<testsuite name="MVC">
<directory suffix="Test.php">./tests/MVC</directory>
</testsuite>
<testsuite name="ORM">
<directory suffix="Test.php">./tests/ORM</directory>
</testsuite>
<testsuite name="Service">
<directory suffix="Test.php">./tests/Service</directory>
</testsuite>
</testsuites>
<php>
<!-- 将该环境变量设置为YES会进行数据库相关测试 -->
<env name="RUN_DB_TEST" value="NO" />
<env name="PGSQL_DSN" value="pgsql:host=localhost;port=5432;dbname=owl_test" />
<env name="PGSQL_USER" value="postgres" />
<env name="PGSQL_PASSWORD" value="postgres" />
</php>
</phpunit>