在我寻求在Azure DevOps上设置CI/CD管道的过程中(之前在Jenkins上),我试图执行解决方案中的所有测试(NUnits)。
目前,命令行是:
vstest.console.exe "Solution\MySolution.sln" /Settings:"testSettings.runsettings" /Logger:"trx" /TestAdapterPath:"Solution\packages\NUnit3TestAdapter.3.12.0\build\net35"以前,在Jenkins上,我们执行了以下操作:
nunit3-console.exe Solution\MySolution.sln --config=Debug --agents=1 --result=TestResult.xml;format=nunit2 --timeout=900000 --workers=1能找到所有的测试。但我不认为它在Azure DevOps中得到了支持。现在,我正在检查文档:https://learn.microsoft.com/en-us/visualstudio/test/vstest-console-options?view=vs-2017#general-command-line-options
但是我只能找到一种方法来列出所有的测试DLL。我觉得这是不能接受的,因为:
那么,我的问题是有什么方法来执行解决方案中的所有测试吗?如果没有,至少可以使用某种模式吗?就像*.Test.dll
https://stackoverflow.com/questions/63795458
复制相似问题