'Create Unit Test' Command in VS2017

5

I can't find the "Create Unit Test" command in the context menu anymore. Did they remove it from VS2017?

gartenriese

Posted 2016-12-12T12:04:47.057

Reputation: 296

Live Unit Testing in Visual Studio 2017 RC: https://blogs.msdn.microsoft.com/visualstudio/2016/11/18/live-unit-testing-visual-studio-2017-rc/

– duDE – 2016-12-12T12:19:56.493

@duDE: I don't know how that is relevant? Are you implying that they removed the command in favor of live unit testing? – gartenriese – 2016-12-13T07:36:57.773

Well, that is about a RC (release candidate) of VS, not ready yet. And yes, you can use meantime the Live Unit Testing instead. – duDE – 2016-12-13T09:15:57.610

@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 – 2016-12-13T13:49:49.603

1

Despite this, https://www.visualstudio.com/en-us/docs/test/developer-testing/getting-started/create-unit-tests-menu I also can't find it.

– JonathanPeel – 2017-03-19T12:36:46.687

Possible duplicate of Create Unit Tests context menu option missing in Visual Studio 2017?/

– MiFreidgeim SO-stop being evil – 2017-06-21T07:11:08.010

@Michael Freidgeim: How can this be a duplicate of a question that hasn't even been asked back then? – gartenriese – 2017-06-21T13:39:52.667

"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

– MiFreidgeim SO-stop being evil – 2017-06-21T22:26:48.787

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.

Paul Ballew

Posted 2016-12-12T12:04:47.057

Reputation: 1