-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpunit.xml
More file actions
66 lines (54 loc) · 2.05 KB
/
Copy pathphpunit.xml
File metadata and controls
66 lines (54 loc) · 2.05 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
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
processIsolation="false"
stopOnFailure="false"
cacheDirectory=".phpunit.cache">
<testsuites>
<!-- 单元测试套件(不依赖API) -->
<testsuite name="Unit Tests">
<file>tests/Chat/StreamUnitTest.php</file>
</testsuite>
<!-- 流式传输测试套件 -->
<testsuite name="Stream Tests">
<file>tests/Chat/StreamChatTest.php</file>
<file>tests/Chat/AdvancedStreamTest.php</file>
</testsuite>
<!-- API测试套件(需要有效配置) -->
<testsuite name="API Tests">
<directory>tests/Bot/</directory>
<file>tests/Chat/ChatTest.php</file>
<directory>tests/Conversation/</directory>
<directory>tests/OfficialAccount/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
<exclude>
<directory>vendor/</directory>
<directory>tests/</directory>
<directory>examples/</directory>
<directory>docs/</directory>
</exclude>
</source>
<php>
<!-- 测试环境变量 -->
<env name="APP_ENV" value="testing"/>
<env name="COZE_SDK_TEST_MODE" value="mock"/>
<!-- 错误报告设置 -->
<ini name="error_reporting" value="-1"/>
<ini name="display_errors" value="1"/>
<ini name="display_startup_errors" value="1"/>
<!-- 内存限制 -->
<ini name="memory_limit" value="512M"/>
<!-- 执行时间限制 -->
<ini name="max_execution_time" value="300"/>
</php>
<logging>
<junit outputFile="tests/reports/junit.xml"/>
</logging>
</phpunit>