Derik Whittaker



Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at
Tests make a great To-Do List

How many times as developers have we made list of things we needed to work on.  Most of the time they are 'tasks' in some sort of task management system.  However, we do not have one of these such systems at work.  So I decided to use 'ignored' tests as my tasks. 

I did this in 2 ways:

  1. As I was creating the various objects and methods I started creating tests that had the only contained Assert.Ignore("SomeMessageHere").  In the body of the method added a description of what needed to be done.
  2. I also created a list of other tasks that I needed to do (ie finish setting up CI, determining where to get various config information, etc).  These tests were also simply Assert.Ignore.

I decided to do this because I figured that seeing these tests in my list over and over again would be a good way to remind me of what needed to be done.

I set these to be Ignores in place of Fail because I don't want these tests to cause my CI process to fail.

Anyway, for some reason it had never occurred to me that tests could double as a 'To-Do' list, but it works.

Till next time,

Posted 03-21-2008 7:28 PM by Derik Whittaker
Filed under: ,



Matt Hinze wrote re: Tests make a great To-Do List
on 03-22-2008 2:34 PM

Tests make great to-do lists.. and they also help me re discover my context after I've been working alongside.. help me answer the question, "what was I doing?"

red, green, refactor, red *code code code*, red *code code code* .. where was I?  .. red, ah yes, red green refactor..

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Google Reader or Homepage Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of
Red-Gate Tools For SQL and .NET


SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
NHibernate Profiler
Balsamiq Mockups
JetBrains - ReSharper
Web Sequence Diagrams
Ducksboard<-- NEW Friend!


Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers


Community Server (Commercial Edition)