3

One of the hot-keys I used most in Visual Studio 2010 was Ctrl+R, Ctrl+T, which ran the unit test the cursor currently was on in debug mode. I think the command is named "Debug tests in current context". Now, you still have a command named Test.DebugTestsInCurrentcontext, but when I assign it to a key combination and activate it, it always yields "currently not available".

I do know that there is a new function in the Test menu named "Debug selected test" - but I think that mappes to the selected tests in the Test Explorer, not the file editor.

What gives, Microsoft? Are you removing features?

Ozair Kafray
  • 1,090
Nilzor
  • 4,519
  • 1
    We're not Microsoft. You're looking for: https://connect.microsoft.com/VisualStudio – Oliver Salzburg Jun 27 '12 at 08:33
  • I admit the last sentence was silly. I know you are superusers.com, and I hope there are some superusers on Visual Studio here. edit: ...as in - I believe the feature still is there, I just cannot find it. – Nilzor Jun 27 '12 at 09:11
  • In all seriousness though. If you feel like this is wrong, reporting it on Connect can be helpful. – Oliver Salzburg Jun 27 '12 at 09:32

2 Answers2

2

vote here: https://connect.microsoft.com/VisualStudio/feedback/details/745762/cant-run-or-debug-tests-in-current-context

yzorg
  • 745
0

I'm late to the party, but in Visual Studio 2019 at least, the following commands are the ones you want to map keyboard shortcuts to:

  • TestExplorer.RunAllTestsInContext
  • TestExplorer.DebugAllTestsInContext