I'm currently using the professional version. There seems to be 2 windows, the Test Explorer and the Unit Test Session. I can run a test or all tests from my code (cs file) and see them in the Unit Test Session window. When I try to run via the Test menu item OR within the Test Explorer window, nothing happens and no tests get run. Am I missing something here? Is this a edition issue?
If Test Explorer is not visible, choose Test on the Visual Studio menu, choose Windows, and then choose Test Explorer (or press Ctrl + E, T).
Using the Test Explorer On first opening all of the tests will have no status i.e. neither pass or fail – but results from now on will be persisted. Running one or more tests – regardless of where you run them from (Test Explorer, Command Palette, CodeLens, Keyboard Shortcut) – will start a test run.
In Visual Studio Installer, choose the Individual components tab, and scroll down to the Debugging and testing section. Select Web performance and load testing tools.
Just ran into the same problem.
Install the nunit adapter
for Test Explorer
(search for "nunit adapter" in NuGet and it will be the first hit).
After installing the addons, press Run all
in test explorer again and voila: all nunit tests are discovered.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With