azure-devops - Azure DevOps Pipeline test showing partially succeeded
问题描述
I've recently added my tests to Azure DevOps pipeline but when i run the test in the release pipeline i get the following error and a yellow symbol to say partially succeeded. How do i fix this issue?
The STDIO streams did not close within 10 seconds of the exit event from process 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe'. This may indicate a child process inherited the STDIO streams and has not yet exited.
2019-05-02T08:36:57.6622077Z ##[warning]Vstest failed with error. Check logs for failures. There might be failed tests.
2019-05-02T08:36:57.6713607Z ##[error]Error: The process 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe' failed with exit code 1
解决方案
这可能是因为选择了控制选项下的出错时继续。
从文档:
Task 元素的 ContinueOnError 属性控制在发生任务失败时构建是停止还是继续。此属性还控制构建继续时是否将错误视为错误或警告。
更多关于错误时继续。
更新图片:
推荐阅读
- phpunit - 无法设置夹具(带有 dbunit 的 PHPunit)
- heroku - Heroku Connect:延长错误日志持续时间和 UNABLE_TO_LOCK_ROW 错误
- javascript - 将图像添加到 ajax 中的上传
- jquery - 无法识别的表达式:输入[名称
- uml - 是否允许我们只为 1 个参与者(用户)使用用例图?
- java - 当负载均衡器位于 MQ 和应用程序之间时,负载均衡器会消耗消息吗?
- html - 自定义 HTML 预处理器/视图引擎
- c# - 如何在 C# 上向 datagridview 插入多行?
- graphql - Apollo Server 2 + Express:后处理程序中缺少 req.body
- angular - 动态表列和行 [Angular 6 + Bootstrap 3]