Home Dashboard Directory Help
Search

Missing funtionality of creating a new Unit test from editor by doronneu


Status: 

Closed
 as By Design Help for as By Design


16
0
Sign in
to vote
Type: Bug
ID: 748493
Opened: 6/12/2012 12:39:27 AM
Access Restriction: Public
0
Workaround(s)
view
8
User(s) can reproduce this bug

Description

VS 2012 is missing the menu toolbar option and the context menu option of creating a unit test for a method/ class.
In VS 2010 there is a Toolbar item: Test-->New Test...
In VS 2012 it is missing !!???
Maybe it is only on my machine? It doesn't make sense.
Details
Sign in to post a comment.
Posted by EdSF1 on 12/22/2013 at 3:46 PM
If you are still wasting time because of this @#!@$$! "improvement":

- see this post: http://serena-yeoh.blogspot.com/2013/02/visual-studio-2012-create-unit-test.html

Option 3 is probably the best solution - though you will have to:
1) Add a new Unit test project (doesn't matter if you already have one circa vs 2010
2) Add a new unit test (file) - don't ask, I don't know, someone with more infinite wisdom can answer "why"....

Now after following the **cosmetic** workaround (something needs to be said about that), *and* doing the extra work, you can right-click -> "create unit test" for your methods.

Yes, you can delete the default scaffolding files generated for you when you create your new vs2012 unit trest project.

Hope this helps.


Posted by soroosh on 10/12/2013 at 9:54 PM
I think It was a good feature.
Posted by Chuanbo Zhang on 10/1/2013 at 5:57 PM
request to add this feature back, it's very bad regression in vs 12
Posted by ChifDagrif on 12/11/2012 at 8:53 AM
I would very much like to have the 'create test' shortcut back. Not having it doesn't fit well with Test First design. I don't like losing VS functionality for the sake of including the 3rd party extensibility. Perhaps Microsoft will create a patch for those of us who would like to add the menu item back?
Posted by Trips2007 on 8/16/2012 at 9:08 AM
If this is "By Design", it is a poor design. Why would one design the evolution of a tool such that a key productivity feature is missing?
Posted by doronneu on 6/14/2012 at 4:53 AM
So How do I add new tests to an existing testing project without coding them manually?
Posted by Microsoft on 6/14/2012 at 4:48 AM
Hi,

The Test-> New Test menu was intentionally removed. In Visual Studio 2012, we have rearchitected the Unit Test framework to make it more extensible. Thus we have adapters for nUnit/xUnit etc built already along with the in-box mstest.

The 'New Test' menu does not have any extension points where 3rd party adapters can plug-in. Therefore we decided to remove it. We moved all the New Test Project types into the File -> New -> Project dialog.

Mathew Aniyan
Program Manager - Visual Studio ALM
Posted by Microsoft on 6/13/2012 at 2:13 AM
Thank you for submitting feedback on Visual Studio 11 and .NET Framework. Your issue has been routed to the appropriate VS development team for review. We will contact you if we require any additional information.

Posted by Microsoft on 6/12/2012 at 12:54 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.