Tuesday, September 30, 2014

"Create Unit Test..." is missing in VS2013

Problem
The Create Unit Test option in the context menu is missing in Visual Studio 2013.

Microsoft removed that because it was tightly coupled to their unit testing product, and they wanted to open up VS to external unit testing products.

Solution

1. Tools > Extensions and Updates

2. Click Online

3. Search for Unit Test Generator

4. Click on it, download it, and install it

warning: This currently only works for public methods, so it doesn't help for internals. How I'm using it generating a template, and then modifying it so it works with the internal class.

Reference
http://channel9.msdn.com/posts/Introducing-the-Unit-Test-Generator-for-Visual-Studio

No comments:

Post a Comment

There was an error in this gadget