Development Journal

Maybe you are like me and regularly work on multiple projects. If not, please send me a cheque for the $0.00001 worth of bandwidth you have wasted.

Sometimes a week or two can pass between looking at a project and I find when I go back to it I lose a couple of hours just trying to work out where I was up to. To solve this problem I have started a development journal for my more neglected projects. At the end of every coding session I record a few key pieces of information to help orientate me the next time I come back to it. Here is an example entry:

----------
2009-08-19
----------

WORKING ON:

Testing the graph navigator code that produces cycles. Discovered and addressed a few edge cases such as non-cyclic journeys where the shortest spanning tree visits every node.


NEXT THING TO DO:

Complete the scenarios in BuildingCyclesTests using the style of the first two already completed scenarios.


TESTS:

63 passed, 0 failed, 1 skipped, took 13.21 seconds

It is just a plain text file that I have added to my visual studio solution items so that I can edit it in visual studio.


TestDriven.Net Keyboard Shortcuts

TestDriven.Net is a Visual Studio add-in to help with testing in general and TDD in particular. It allows the user to run a test or group of tests by right-clicking and selecting 'Run Test(s)' from the context menu.

Context Menu

When I started using TestDriven.Net I used the Shift+F10 keyboard combination to access the context menu so that I did not have to take my hands off the keyboard to run a test. That was until Steve suggested setting up TestDriven.Net keyboard shortcuts in Visual Studio. He suggested two shortcuts:

TestDriven.NET Keyboard Shortcuts
Shortcut Name Shortcut Key Combination Description
TestDriven.NET.RunTests Ctrl+Shift+Alt+T This is the equivalend of right-click => Run Test(s).
TestDriven.NET.RerunTests Ctrl+Shift+Alt+R This is a very handy shortcut that runs the last tests run. You can run a test, make a code change, and then rerun the last test without taking the cursor back to it.


To setup shortcuts in Visual Studio 2008 use the 'Keyboard' settings group in options. Entering 'TestDriven' in the 'Show commands containing' text box will filter the list of shortcuts to just those relating to TestDriven.Net. Then find TestDriven.NET.RerunTests, place your cursor in the 'Press shortcut keys' text box, enter the key combination of your choice and click 'Assign'. Same process for TestDriven.NET.RunTests. Of course there are many other shortcuts you can configure, such as RunWithCoverage, if you're into that.

TestDriven keyboard shortcuts