I just added a specflow function, but the generated code for NUnit. I would rather use Resharper to run the tests.
I installed specflow from NuGet. I have not set up any runner designs.
Here is an example of the generated .feature.cs file
// ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by SpecFlow (http://www.specflow.org/). // SpecFlow Version:1.9.0.77 // SpecFlow Generator Version:1.9.0.0 // Runtime Version:4.0.30319.18444 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ #region Designer generated code #pragma warning disable namespace Test.FeatureHanding { using TechTalk.SpecFlow; [System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.9.0.77")] [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [NUnit.Framework.TestFixtureAttribute()] [NUnit.Framework.DescriptionAttribute("Set Filter")
By default, all SpecFlow tests are in NUnit! SpecFlow just generates tests from plain text for you.
You just need to click on the icon to the left of the test method declaration in the generated YourFeature.feature.cs file or find Resharpers test explorer to find it.
I think that there is a terminological misunderstanding.
NUnit - ( - xUnit, mbUnit, MSTest). NUnit , , NUnit.
Resharper test runner, ( , ). . Visual studio (2012+, ) , MSTest . NCrunch , xUnit mbUnit, , , , .
, , Resharper , SpecFlow.