Azure DevOps Pipeline测试显示部分成功 [英] Azure DevOps Pipeline test showing partially succeeded
问题描述
我最近将测试添加到Azure DevOps管道中,但是当我在发布管道中运行测试时,出现以下错误和一个黄色符号,表示部分成功.我该如何解决这个问题?
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
推荐答案
这可能是因为选择了控制选项"下的继续出错".
This could be since Continue on error under Control Option is selected.
从文档中
Task元素的ContinueOnError属性控制在任务失败发生时构建是停止还是继续.此属性还控制在继续构建时将错误视为错误还是警告.
The ContinueOnError attribute of the Task element controls whether a build stops or continues when a task failure occurs. This attribute also controls whether errors are treated as errors or warnings when the build continues.
有关 图片更新:
这篇关于Azure DevOps Pipeline测试显示部分成功的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!