Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2013 Test Explorer doesn't seem to work

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?

like image 857
Kirby Avatar asked Dec 11 '13 16:12

Kirby


People also ask

How do I enable test Explorer in Visual Studio?

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).

How do I use test Explorer code in Visual Studio?

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.

How do I test a service in Visual Studio?

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.


1 Answers

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.

like image 89
bas Avatar answered Sep 22 '22 02:09

bas