Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio plug in to jump to test class

I was wondering if there is a plugin that allows me to jump directly to the test for the current class (Or create it if it doesn't exist).

I guess this should be based on the convention that the test project is named like the project being tested + "test" and the test class is named like the class being tester + "test".

A feature like that would really help in projects with many files and foldes, where scrolling the solution explorer to find the associated test project can be quite annoying.

like image 898
Kaj Bonfils Avatar asked Sep 24 '12 11:09

Kaj Bonfils


2 Answers

how about NCrunch? This tool will show you, per method, which and how many tests are covering it:

NCrunch shows how many tests are covering

double-click navigates to test

like image 115
RoelF Avatar answered Oct 15 '22 11:10

RoelF


I did manage to find a few extensions on visualstudiogallery.com, but ended up writing my own plugin for this. Its not perfect, but i does what I needed.

If anyone else would like, its available for free at testlocator.eqa.dk

like image 27
Kaj Bonfils Avatar answered Oct 15 '22 09:10

Kaj Bonfils