【发布时间】:2021-07-29 23:15:18
【问题描述】:
我的管道中有以下 DotNet 测试任务
displayName: 'unit tests'
inputs:
command: test
projects: '**/*Unit*.csproj'
publishTestResults: true
arguments: '/p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput=results/'
如果没有与项目模式匹配的文件:'**/*Unit*.csproj',我如何使管道失败?
目前,它会显示当前的错误信息并继续下一个任务
##[warning]Project file(s) matching the specified pattern were not found.
【问题讨论】:
-
这张票有更新吗?如果该建议可以为您提供帮助,请随时告诉我。只是提醒this。
标签: azure .net-core azure-devops dotnetcorecli