« Replacing ExpectedException in NUnit | Main | Agile Conference in Toronto »

June 28, 2008

Lessons Learned in Programmer Testing

I have just finished the early summer conference circuit. I  spoke at the p&p Summit in Quebec City in early May, TechEd Developer in Orlando, and the Better Software Development Conference in Las Vegas.

The session that I gave at all of the conferences was about lessons that I have learned writing programmer tests over the years. Some of these lessons are now embodied in xUnit.net. I have attached the presentation (2135.7K) to this blog post. You can also download all of the sample code  (214.0K) from the sessions as well. The code is licensed under the Microsoft Public License.

Joe White has a detailed write-up on his blog outlining the TechEd session. He takes me to task about being dogmatic in a couple of places. I will admit to being dogmatic when it comes to test readability and maintenance. The specific lessons “Don’t use Setup and Teardown” and “Don’t use abstract base test classes” are discussed with readability and maintainability as the primary goals. This does potentially increase code duplication but I am willing to do that to improve the communication of the code.

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8354604d653ef00e55378a5218833

Listed below are links to weblogs that reference Lessons Learned in Programmer Testing:

» Lessons Learned in Programmer Testing from James Newkirk's Blog
I just posted a the presentation and sample code from the Lessons Learned in Programmer Testing sessions [Read More]

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment