【发布时间】:2021-01-19 15:15:36
【问题描述】:
我已尝试以下方法在 Azure DevOps 构建脚本中运行单个测试。我只有 2 个测试,我只想运行其中一个。
用于测试的 Azure DevOps 构建脚本
- task: DotNetCoreCLI@2
displayName: Smoke test
inputs:
command: test
projects: '**/*Test*.csproj'
arguments: '--configuration $(buildConfiguration) --filter Name~TestMethod2'
测试结果
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
No test matches the given testcase filter `TestMethod2` in C:\agent-orsa-ssp\_work\2\s\RsSolution7\UnitTestProject1\bin\Release\netcoreapp3.1\UnitTestProject1.dll
【问题讨论】:
-
这个问题怎么样?下面的答案是否解决了您的问题,如果没有,请告诉我有关此问题的最新信息吗?
标签: azure-devops