Sponsors

News

Jobping Laurent Kempé MVP JetBrains Academy Member Certified ScrumMaster

Contact

My status

View Laurent Kempé's profile on LinkedIn
XING
twitter
facebook


Xbox 360



Map

Locations of visitors to this page

.NET Dudes

Family

French .NET Dudes

Friends

Jobping

Links

Tech Head Brothers

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

Laurent Bugnion said:

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 ;)

# October 8, 2009 3:36 AM

Twitter Trackbacks for Unit Tests without leaving the keyboard - Laurent Kemp?? [asp.net] on Topsy.com said:

Pingback from  Twitter Trackbacks for                 Unit Tests without leaving the keyboard - Laurent Kemp??         [asp.net]        on Topsy.com

# October 8, 2009 4:12 AM

vn_nilesh@hotmail.com said:

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

# October 8, 2009 10:00 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)