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 worksThe 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 startedDownload 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 releasedOut 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 releasedNo code changes, but can be installed in Visual Studio 2015
2013-06-27: Version 1.3 releasedNo code changes, but can be installed in Visual Studio 2013
2013-05-07: Version 1.2 releasedA number of improvements have been implemented in version 1.2:
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. |