azure-devops - azurepipelines-coverage.yml 的架构,用于为 PR 配置新发布的代码覆盖率指标功能

标签 azure-devops azure-pipelines

功能描述 here

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在 repo 的根目录,但是我在任何地方都找不到模式。

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

我用谷歌搜索过,搜索过博客文章,搜索过微软文档和 Github。

最佳答案

coverage:
  status:
    diff:
      target: 40%

关于azure-devops - azurepipelines-coverage.yml 的架构,用于为 PR 配置新发布的代码覆盖率指标功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57211986/

相关文章:

Azure DevOps 作业忽略失败

azure-devops - 在 Azure Devops 中按顺序运行作业

azure-devops - helm 在 Azure DevOps 中使用 --set 覆盖列表值

azure - 从 Azure DevOps 部署到 Azure Linux 应用服务没有效果

Azure DevOps VSTest 任务 - appconfig 设置

azure-devops - 有条件地在 azure 管道中使用变量组

visual-studio - Visual Studio Community Edition 无法访问 VSTS?

c# - 在 Visual Studio 中使用 C# 脚本开发 Azure Function

Angular 应用程序构建管道 - VSTS 中的持续集成

visual-studio-2017 - 托管 VS2017 代理构建 master.dacpac 不存在