azurepipelines-coverage.yml的架构,用于配置PR的新发布的代码覆盖率指标功能 [英] Schema for azurepipelines-coverage.yml to configure newly released code coverage metrics feature for PR's

查看:103
本文介绍了azurepipelines-coverage.yml的架构,用于配置PR的新发布的代码覆盖率指标功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您现在可以在拉取请求(PR)视图中查看代码覆盖率度量以进行更改.这样可以确保您已通过自动化测试充分测试了您的更改.覆盖状态将在PR概述中显示为注释.您可以在文件差异视图中查看更改的每个代码行的覆盖率信息的详细信息.

You can now see code coverage metrics for changes within the pull request (PR) view. This ensures that you have adequately tested your changes through automated tests. Coverage status will appear as a comment in the PR overview. You can view details of coverage information for every code line that is changed in the file diff view.

但是要配置它,它在仓库的根目录需要azurepipelines-coverage.yml,但是我在任何地方都找不到模式.

However to configure this it requires azurepipelines-coverage.yml at the root of the repo, however I cannot find the schema anywhere.

有人知道吗?无法配置它,默认代码覆盖率设置为70%,我似乎无法禁用它.

Anyone got any idea? Without being able to configure it, the default code coverage percentage is set to 70% and I cannot seem to disable it.

我已经Google搜索,搜索了博客文章,搜索了Microsoft文档和Github.

I have Googled, searched the blog post, searched Microsoft Documentation and Github.

推荐答案

coverage:
  status:
    diff:
      target: 40%

这篇关于azurepipelines-coverage.yml的架构,用于配置PR的新发布的代码覆盖率指标功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆