I can't find the "Create Unit Test" command in the context menu anymore. Did they remove it from VS2017?
Asked
Active
Viewed 784 times
5
-
Live Unit Testing in Visual Studio 2017 RC: https://blogs.msdn.microsoft.com/visualstudio/2016/11/18/live-unit-testing-visual-studio-2017-rc/ – Leo Chapiro Dec 12 '16 at 12:19
-
@duDE: I don't know how that is relevant? Are you implying that they removed the command in favor of live unit testing? – gartenriese Dec 13 '16 at 07:36
-
Well, that is about a RC (release candidate) of VS, not ready yet. And yes, you can use meantime the Live Unit Testing instead. – Leo Chapiro Dec 13 '16 at 09:15
-
@duDE: Oh, I think you misunderstood. I can still use unit tests, it's just that the one command is missing. It's just a slight inconvenience because now I have to create the TestMethod manually. But I guess it will be implemented once it's done. – gartenriese Dec 13 '16 at 13:49
-
1Despite this, https://www.visualstudio.com/en-us/docs/test/developer-testing/getting-started/create-unit-tests-menu I also can't find it. – JonathanPeel Mar 19 '17 at 12:36
-
Possible duplicate of Create Unit Tests context menu option missing in Visual Studio 2017?/ – Michael Freidgeim Jun 21 '17 at 07:11
-
@Michael Freidgeim: How can this be a duplicate of a question that hasn't even been asked back then? – gartenriese Jun 21 '17 at 13:39
-
"Possible duplicate" is a way to clean-up - to close similar questions and keep one with the best answers. The date is not essential. See http://meta.stackexchange.com/questions/147643/should-i-vote-to-close-a-duplicate-question-even-though-its-much-newer-and-ha If you agree that it requires clarification please vote on http://meta.stackexchange.com/questions/281980/add-clarification-link-to-possible-duplicate-automated-comment – Michael Freidgeim Jun 21 '17 at 22:26
1 Answers
0
Looks like it was removed, though I didn't really use it. I recommend using Rusty Divine's code snippet:
Works great--all you have to do is type ut and then TAB.