首页 > 解决方案 > 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

标签: azure-devopsautomated-testsazure-pipelines

解决方案


这可能是因为选择了控制选项下的出错时继续。

在此处输入图像描述

从文档:

Task 元素的 ContinueOnError 属性控制在发生任务失败时构建是停止还是继续。此属性还控制构建继续时是否将错误视为错误或警告。

更多关于错误时继续。

更新图片:

在此处输入图像描述


推荐阅读