The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Legacy TDD: Don't write all the missing tests

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jonathan Cogley

Posts: 56
Nickname: thycotic
Registered: Dec, 2004

Jonathan Cogley is the founder of Thycotic Software Ltd, a C# MVP and TDD evangelist.
Legacy TDD: Don't write all the missing tests Posted: Jan 2, 2005 1:31 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Jonathan Cogley.
Original Post: Legacy TDD: Don't write all the missing tests
Feed Title: Jonathan Cogley's Blog
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/jcogley/Rss.aspx
Feed Description: C#, Test Driven Development, Remote Scripting, CShark! :)
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Jonathan Cogley
Latest Posts From Jonathan Cogley's Blog

Advertisement

A new project for Thycotic requires major enhancements to a legacy application.  There are no existing tests.  Where do we begin?

This is the first post in a new blog series on the issues as they are tackled in this project.  The usual advice you receive in this situation is: Don't write all the missing tests.

Why not?  Several reasons ...

  • You probably don't understand the system well enough to write good tests
  • Each test should just pass as it verifies an existing feature - this breaks the "fail, pass, refactor, pass" process of TDD
  • You will probably have large areas of missing coverage as it is difficult to test thoroughly after the fact
  • There will be no new features added while you spend all your time writing tests - this can be cost and time prohibitive depending on the size of the existing system

This same advice says to rather add a test when you find a bug or need to work on an enhancement.  Over time the number of tests for your application will grow and all will be good.  Sounds great but how does it really work and where do you start?

Stay posted for the next in the series: The first test

Read: Legacy TDD: Don't write all the missing tests

Topic: I'm in 2005 Previous Topic   Next Topic Topic: Next generation iteration: Array.ForEach and Delegate inference

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use