Why do my SpecFlow tests not show up in Visual Studio Test window?

后端 未结 5 795
一整个雨季
一整个雨季 2021-01-13 00:37

I have gone through the Getting Started tutorial for SpecFlow. Everything worked fine except that I have the @SpecRun test because I have not entered a demo key.

But

5条回答
  •  不知归路
    2021-01-13 01:10

    For VS 2019 I spent hours to see runnable tests on test explorer. I am using SpecFlow.xUnit nuget it installs SpecFlow as a dependency and I installed xunit.runner.visualstudio as test runner. Also SpecFlow.Tools.MsBuild.Generation nuget should be installed as mentioned on SpecFlow's getting started page. After seperating feature and generated cs file into different folders in test project I started to run tests on spec. In addition you can see .feature.cs file if you click show all files on your solution explorer.

提交回复
热议问题