Skip to content

Commit 8ebd015

Browse files
committed
chore(coverage): configure per-directory coverage thresholds with 0% for most modules
Set coverage requirements to 0% for agentrun modules to enable gradual testing adoption while maintaining 95% requirement for server module configure per-directory coverage thresholds with 0% for most modules Set coverage requirements to 0% for agentrun modules to enable gradual testing adoption while maintaining 95% requirement for server module Change-Id: I0faacb4c789d5364c08bc9ffaf8c9e5f85313291 Signed-off-by: OhYee <[email protected]>
1 parent 23d5579 commit 8ebd015

File tree

1 file changed

+61
-9
lines changed

1 file changed

+61
-9
lines changed

coverage.yaml

Lines changed: 61 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,72 @@ incremental:
2424
# 可以为特定目录设置不同的覆盖率阈值
2525
# ============================================================================
2626
directory_overrides:
27-
# 示例:server 模块要求 97% 分支覆盖率
27+
# 为除 server 外的所有文件夹设置 0% 覆盖率要求
28+
# 这样可以逐个文件夹增加测试,暂时跳过未测试的文件夹
29+
agentrun/agent_runtime:
30+
full:
31+
branch_coverage: 0
32+
line_coverage: 0
33+
incremental:
34+
branch_coverage: 0
35+
line_coverage: 0
36+
37+
agentrun/credential:
38+
full:
39+
branch_coverage: 0
40+
line_coverage: 0
41+
incremental:
42+
branch_coverage: 0
43+
line_coverage: 0
44+
45+
agentrun/integration:
46+
full:
47+
branch_coverage: 0
48+
line_coverage: 0
49+
incremental:
50+
branch_coverage: 0
51+
line_coverage: 0
52+
53+
agentrun/model:
54+
full:
55+
branch_coverage: 0
56+
line_coverage: 0
57+
incremental:
58+
branch_coverage: 0
59+
line_coverage: 0
60+
61+
agentrun/sandbox:
62+
full:
63+
branch_coverage: 0
64+
line_coverage: 0
65+
incremental:
66+
branch_coverage: 0
67+
line_coverage: 0
68+
69+
agentrun/toolset:
70+
full:
71+
branch_coverage: 0
72+
line_coverage: 0
73+
incremental:
74+
branch_coverage: 0
75+
line_coverage: 0
76+
77+
agentrun/utils:
78+
full:
79+
branch_coverage: 0
80+
line_coverage: 0
81+
incremental:
82+
branch_coverage: 0
83+
line_coverage: 0
84+
85+
# server 模块保持默认的 95% 覆盖率要求
2886
# agentrun/server:
2987
# full:
30-
# branch_coverage: 97
31-
# line_coverage: 97
88+
# branch_coverage: 95
89+
# line_coverage: 95
3290
# incremental:
3391
# branch_coverage: 95
3492
# line_coverage: 95
35-
36-
# 示例:utils 模块可以有较低的覆盖率要求
37-
# agentrun/utils:
38-
# full:
39-
# branch_coverage: 80
40-
# line_coverage: 80
4193

4294
# ============================================================================
4395
# 排除配置

0 commit comments

Comments
 (0)