The “Unit Test Generator” extension is available
To add directly from Visual Studio 2012/2013 IDE:
- Menu: Tools -> Extensions and Updates
- Click: Online -> Visual Studio Gallery
- Search for: “Unit Test Generator”
Note: MSTest in VS 2012/2013 still sucks
For those who are disappointed with the removal of the “Create Unit Tests…” context menu in Visual Studio 2012, here are few methods for you to re-enable the feature:
Method 1 – Command Window
If you find hard enough, you will discover that the command to invoke the Create Unit Tests… is actually:
You can actually type that in the Command Window to invoke the Create Unit Test Wizard. If you find it too verbose, you can actually create an alias for it.
alias ut EditorContextMenus.CodeWindow.CreateUnitTests
Then just type ut to launch the wizard.
Method 2 – Keyboard Shortcut
The next method is to go to Tools->Options->Environment->Keyboard and set a shortcut key of your preference.
Method 3 – Re-enable the Create Unit Tests… Context Menu.
This is by far the best method ever. To re-enable the Create Unit Tests… menu, go to Tools->Customize… to launch the Customize dialog. At the Customize dialog, go to the Commands tab, select the Context menu radio button and choose Editor Context Menus | Code Window.