I would like to be able to run MSpec tests (specifications) from the Visual Studio 2017 Test Explorer. I have a .NET Framework 4.6.1 project, and I am using the following NuGet package: Machine.Specifications.Runner.VisualStudio
.
I see the tests listed in the Test Explorer. However, when I right-click and choose "Run selected tests", the tests disappear from the Test Explorer and are not run.
I have seen this older question dealing with the same problem in Visual Studio 2015. According to the blog post, the runner should support the Test Explorer. Or is it the case only when working with .NET Core projects?
I am wondering if the options are still:
- use ReSharper (or some other plugin)
- use the console runner (which does work)
or I am doing something wrong.
EDIT: I observe the behavior I have described only in case the specification is not implemented. The implemented specifications, regardless of whether they pass or fail, are visible in the Test Explorer. I assume this must be a bug or maybe expected behavior of the MSpec Visual Studio runner.