我有一个使用Selenium Specflow C#的项目,可以通过测试资源管理器和ReSharper单元测试资源管理器执行测试。
但是当我运行命令行来执行测试(这是Jenkins执行测试的方式)
它无法在DLL中找到任何测试。
mstest /testcontainer:MoneyUITests.dll /test:NavigateToLoans
Microsoft (R) Test Execution Command Line Tool Version 15.0.26621.2
Copyright (c) Microsoft Corporation. All rights reserved.
Loading MoneyUITests.dll...
Test NavigateToLoans cannot be found.
Test NavigateToLoans cannot be found.
Starting execution...
No tests to execute.
我不确定我做错了什么,奇怪的是Visual Studio能够找到并执行测试而没有问题。