I'd like to include SpecFlow and NUnit tests in the same project, and use the SpecFlow+ Runner (SR) to take advantage (hopefully) of the test execution reports, Targets, etc. available with SR. This seems possible based on the "Migration to SpecFlow+ Runner" documentation, however, I'm unable to successfully run NUnit tests with SR.
SpecFlow tests run and work as expected. NUnit tests run for 3 seconds, produce the Log file and Report file (it's blank) in the Tests Output. but the test doesn't actually run. Output also shows, "No test matches the given testcase filter".
As a side note, the same exact SpecFlow and NUnit tests work as expected when the project is setup to use NUnit runner (VS2019 SpecFlow project template, and NUnit Test Framework).
Is it possible to have SpecFlow and NUnit tests exist in the same project and use SpecFlow+ Runner? If yes, what may be causing the NUnit test run issue?
Related Packages: Microsoft.NET.Test.Sdk 16.11.0, NUnit 3.13.2, SpecFlow.Plus.LivingDocPlugin (3.9.57), and SpecRun.SpecFlow (3.9.7).
Targeting .NET 5.0.
Please sign in to leave a comment.