Skip to content
| Marketplace
Sign in
Visual Studio>Tools>TestLocator
TestLocator

TestLocator

Kaj Bonfils

|
1,224 installs
| (1) | Free
Test Locator will help you navigate between code and test.
Download

Eqa TestLocator eqa TestLocator is a simple visual studio plugin, that allows the user to navigate between the code class and the associated test class with a single click.

How it works

The plugin takes advantage of the naming conventions usually used when making unit tests and test projects.

Usually the unittest projects are named <CodeProjectName>.UnitTest or something similar. In the same way, the unittest files are usually named <CodeFileName>.UnitTest.cs or alike. The plugin uses this info to search for the testproject and testfile when the active document is a code file and the other way around when the active document is a unit test file.

Getting started 

Download and install the plugin. Then create an xml file, TestLocator.Config, that configures your personal naming convention. The file should be placed in the solution root folder. Put the following xml into the config file:

<TestLocator>     <ProjectExtension>.UnitTest|.Test</ProjectExtension>     <TestFileExtension>.test</TestFileExtension><TestLocator> 

Where the project extension is the namingconvention used for test projects. In the example above, my testprojects are named <CodeProject>.UnitTest or <CodeProject>.Test. The reason for multiple choises is that in some legacy projects, the naming might not be uniform. The recommendation is to always use one naming convention for simplicity.

In the same way, the TestFileExtension contains the postfix for your unit test files. In the example above, the testfiles are named <CodeFileName>.test.cs. If you prefer to name your unittestfiles as <CodeFileName>.UnitTest.cs, just change the TestFileExtension to 

 <TestFileExtension>.UnitTest</TestFileExtension>

 

When the config file is setup, you need to restart visual studio. When VS is reloaded, use the Test menu and select Test Locator or use the simple four finger shortcut

CTRL-SHIFT-ALT-L

 

Happy testing.

2015-09-08: Version 2.0.5 released

Out of beta - Thanks for testing to Nicolai Enøe.

This version contains automatic installation of the TestLocator TestClass Item template.

2015-09-02: Version 2.0.2-beta released

No code changes, but can be installed in Visual Studio 2015

 

 

2013-06-27: Version 1.3 released

No code changes, but can be installed in Visual Studio 2013

 

2013-05-07: Version 1.2 released

A number of improvements have been implemented in version 1.2:

  • Support for nested solution folders.
  • Support for multiple test project extensions.

    E.g. a solution containing both xxx.UnitTest and yyy.Test projects. Using the config file below, TestLocator will search for projects with both extensions when locating the test file.

    <TestLocator>     <ProjectExtension>.UnitTest|.Test</ProjectExtension>     <TestFileExtension>.test</TestFileExtension><TestLocator>                        
  • Installation package: No more copy paste installation

 

Please see testlocator.eqa.dkfor more information.

 Please use twitter handle #TestLocator ´

Contact me using http://www.twitter.com/kajbonfils

 

Please review the plugin. I make this for free and feedback is appreciated.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft