Oct
8
2009

Unit Tests without leaving the keyboard

I like the Roy Osherove blog: Five Whys, Leadership in software teams.

Follow up on those two posts “How to measure programmer productivity using TDD Katas” or “Be Productive and Go Mouseless”. I would like to share a little keyboard shortcut which save me quite some time on my daily developments.

As you might know I am a fan of ReSharper and when I am doing Test Driven Development I hate having to switch from keyboard to mouse to run the test I just wrote. So searching for ReSharper Keyboard command I found Resharper_UnitTest_ContextRun which I assign to the Ctrl+Shift+<.

Now I can run the unit test I just wrote with just a combination of keys which are really near to each other so really easy!

The bonus of this command is that if I have the cursor in one unit test in a TestFixture class then it will run that particular test, but if I have the cursor out of any unit test method it will run all tests of that TextFixture. Very efficient!

Enjoy it!

Comments (7) -

Will I get lynched if I mention that in MSTest (ducks), you can do that too, by using the pre-mapped shortcuts Ctrl-R, Ctrl-T (executes test in the context in debug mode), Ctrl-R, T (executes test in the context in run mode), Ctrl-R, Ctrl-A (executes all tests in debug mode), Ctrl-R, A (executes all tests in run mode).

I know, I know, but still ;)

Resharper is really helpful in  improving the developer productivity. Thanks for this tip

What type of drunk are you? Are you an angry drunk? Are you a person that talks a lot when they get drunk? Are you a person that does stupid things when they get drunk. ECT.
What type of drunk are you?

For, example portishead.forums.umusic.co.uk/.../casodex.aspx
portishead.forums.umusic.co.uk/.../casodex.aspx>Buy Casodex

This is fantastic! side effect of buy effexor xr  http://collaborationproject.org/display/~fathelper buy effexor with tranzene  I'll be back!
Why not just ask them? ssri discontinuation syndrome buy effexor  http://collaborationproject.org/display/~fathelper">starting and starting buy effexor buy effexor as a high  I'll be back!

Amazing work! buy clomid uk  http://www.psu.com/forums/member.php?u=199218  Please let us know.
Amazing work! buy clomid online without a prescription  http://www.psu.com/forums/member.php?u=199218">buy clomid 200mg
buy clomid serophene  I'll be back!

Sorry for interrupting you... buy mexican clenbuterol nolvadex online  http://www.stumbleupon.com/stumbler/med-brother/ buy clenbuterol nolvadex online  A merry Christmas!

Could you spare me a moment? buy mexican clenbuterol nolvadex online  http://www.stumbleupon.com/stumbler/med-brother/">buy chemical citrate nolvadex research tamoxifen
buy nolvadex on the net  Thanks.

How do you do? order zithromax 1g oral  www.stumbleupon.com/.../buy_zithromax_en-us.html order zithromax online  See you later! v

How are you? order zithromax  www.stumbleupon.com/.../buy_zithromax_en-us.html">order zithromax no perscription
order zithromax poder  See you tomorrow! z

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

About Laurent

Laurent Kempé

Laurent Kempé is the editor, founder, and primary contributor of Tech Head Brothers, a French portal about Microsoft .NET technologies.

He is currently employed by Innoveo Solutions since 10/2007 as a Senior Solution Architect and certified Scrum Master.

Founder, owner and Managing Partner of Jobping, which provides a unique and efficient platform for connecting Microsoft skilled job seekers with employers using Microsoft technologies.

Laurent is awarded by Microsoft since Avril 2002: Most Valuable Professional (MVP).

MVP
Certified ScrumMaster
JetBrains Academy Member

My status

Twitter

Flickr

www.flickr.com
This is a Flickr badge showing public photos and videos from Laurent Kempé. Make your own badge here.

Month List

Page List