gpt4 book ai didi

azure-devops - 覆盖状态检查失败?

转载 作者:行者123 更新时间:2023-12-04 11:11:45 25 4
gpt4 key购买 nike

我提交了对拉取请求的更改,并且显示

"Code coverage status failed.".



我已经搜索了很多,但找不到解决此问题的原因或解决方案。
Azure pipeline test service 
Diff coverage check failed.0/70 (0.00 %) changed lines are covered up to update 2. Diff coverage target is 70.00 %.

验证构建成功但状态显示代码覆盖失败。

最佳答案

创建 azurepipelines-coverage.yml使用以下任何一项在您的存储库的根目录下创建配置文件:

coverage:
status: off #default on

Turning this off will not post any coverage checks and coverage annotations will not appear in the changed files view.


coverage:
status:
diff:
target: 30% default 70%

Target threshold value for diff coverage must be met for a successful coverage status to be posted.


coverage:
status:
comments: on #default off

Indicates whether a comment containing coverage details for each code file should be posted in the pull request



Microsoft Docs; Configuring coverage settings

关于azure-devops - 覆盖状态检查失败?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57215531/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com