在Visual Studio 2019中,測試資源管理器中方案的名稱與我要運行的測試不同


0

Test Explorer中的測試方案與我的V / S項目中的方案不同。

我嘗試重新啟動Test Explorer無效。謝謝!

enter image description here

1

Feels like the generation of the code behind is not working correctly. Specflow creates .cs file for each .feature file. This .cs file contains the "real" testcode that is found by the test-explorer. Each should be regenerated on each save, rebuild.

We had to set the option "specflowsinglefilegenerator" to true. Suggest you try the options in the following two pages:

Alternatively, delete the generated .cs files and rebuild your project.