找不到测试文件时如何使 AzureDevops 管道失败

问题描述

我的管道中有以下 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.

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)