gpt4 book ai didi

Azure DevOps 管道测试失败...但我如何轻松识别哪些测试?

转载 作者:行者123 更新时间:2023-12-02 06:15:58 25 4
gpt4 key购买 nike

我的 Azure DevOps 构建管道中有一个 VSTest@2 步骤。

我在输出中得到以下内容:

 Results File:
d:\a\_temp\TestResults\VssAdministrator_xx-az678_2020-02-25_18_50_38.trx
Total tests: 7132
Passed: 7108
Failed: 2
Skipped: 22
##[error]Test Run Failed.
....
##[warning]Vstest failed with error. Check logs for failures. There might be failed tests.
##[error]Error: The process 'd:\a\_tasks\VSTest_{SomeGuid}\2.165.2\Modules\DTAExecutionHost.exe' failed with exit code 1
##[error]Vstest failed with error. Check logs for failures. There might be failed tests.

好的,有两个测试失败(7,132 个测试中)。据我所知,“这是两个失败的测试”没有任何帮助。产量巨大,需要

最佳答案

how can I easily identify which tests

对于此问题,您可以在测试选项卡中查看测试报告。测试报告提供了一种有效且一致的方式来查看使用不同测试框架执行的测试结果,以便测量管道质量、审查可追溯性、排除故障并插入故障所有权。

可以使用以下选项之一在“测试”选项卡中显示测试结果:

  • 自动推断测试结果。默认情况下,您的管道可以自动推断一些流行测试的测试输出运行者。这是通过解析期间生成的错误日志来完成的构建操作,然后检查测试失败的签名。
  • 测试执行任务。内置测试执行任务如Visual Studio Test自动将测试结果发布到管道,或其他,例如 Ant、Maven、Gulp、Grunt 和 Xcode提供此功能作为任务中的一个选项。
  • 发布测试结果任务。当使用您选择的执行测试时,将测试结果发布到 Azure Pipelines 或 TFS 的任务运行者,结果可在任何 supported testresult formats 中找到.
  • API。使用Test Management API(s)直接发布测试结果.

enter image description here

可以引用这个document了解详情。

关于Azure DevOps 管道测试失败...但我如何轻松识别哪些测试?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60401925/

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