8

It is possible to repeat the last test, but in debug mode?

When running the last test (even when I manually last ran it in debug mode), it will run without debug mode.

I thought perhaps I could map a shortcut key to an underlying command. However using the command window, I cannot see a command suggesting that it can be done.

repeat last run

test in debug mode

  • Can someone with more reputation add a unit testing tag to this, it would be useful. Thanks. – Alex KeySmith Mar 4 '14 at 10:11
3

Joshu Weber at Microsoft said the following when the same question was asked on Microsoft Connect:

Andrew,

This is very interesting feedback. We designed the repeat last run command as a shortcut to selecting a subset of all your tests for execution. It currently by design does not take into account debug attachment as part of a run. This is a interesting new feature idea however and >we are going to place it on our backlog.

Thanks for the feedback. Keep it coming. Joshua Weber

In other words it seems like this isn't possible at the moment (without on add-on at least).

2

It's possible using ReSharper. Look for the ReSharper.ReSharper_UnitTestSessionRepeatPreviousRun command in the keyboard bindings options. It can repeat the last test run in debug mode.

  • resharper requires a local cluster to work OK – Ivan G. Dec 6 '16 at 11:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.