Regression tests, do it now.

When you encounter a bug, do you first write a failing test before fixing it? You should. But the vast majority of us sometimes do not. External pressure (read Customer, Teammates or Management) moves us in the opposite direction. Everything we’ve learnt about unit testing and good software practices go out the window, and the sheer pressure forces us to fix the issue as fast as possible! We focus more on getting the job done* and deploying than worrying about adding another test to our suite.

Adding that test is not about increasing our code coverage or patting ourselves on the back, with an optional tweet, that we are good developers. It’s about putting regression tests in place.

Of course, we could always just apply the fix, and then later, calmly add a test. However, there’s always another urgent bug fix, feature, or customer breathing down our necks, so things just get putt off. 

It’s hard to not be tempted to just fix something then and there. Fight the temptation though if you can. Write that failing test first!

[*Implicitly changing the definition of Done on the go]


Posted 08-30-2010 2:24 PM by Hadi Hariri
Filed under:

[Advertisement]

Comments

buy viagra online wrote re: Regression tests, do it now.
on 02-02-2013 8:20 PM

5AI9o0 Very good article.Really looking forward to read more. Want more.

bookmarks wrote re: Regression tests, do it now.
on 03-13-2013 10:08 PM

XTHFTO Thanks a lot for the article post.Thanks Again.

social bookmarking service wrote re: Regression tests, do it now.
on 03-22-2013 3:13 PM

VVzZUb Great post.Much thanks again. Will read on...

Social bookmarks wrote re: Regression tests, do it now.
on 04-03-2013 6:29 AM

YQaUdb This is one awesome blog post.Thanks Again. Keep writing.

stoner wrote re: Regression tests, do it now.
on 04-05-2013 1:58 PM

Major thankies for the post.Really thank you!

buy social bookmarks wrote re: Regression tests, do it now.
on 04-07-2013 3:03 PM

5lFH18 This is one awesome article post.Much thanks again. Cool.

buy social bookmarks wrote re: Regression tests, do it now.
on 04-13-2013 4:53 PM

9UTMcG I really enjoy the blog.Really looking forward to read more. Really Great.

social bookmarking service wrote re: Regression tests, do it now.
on 04-28-2013 3:01 AM

AA1zGi Appreciate you sharing, great blog article.Thanks Again.

moldova news wrote re: Regression tests, do it now.
on 07-12-2013 6:11 PM

CQdlsp A big thank you for your post. Awesome.

social bookmark submission wrote re: Regression tests, do it now.
on 07-28-2013 9:53 PM

YyM9fR Im grateful for the blog article.Much thanks again. Awesome.

amazing news wrote re: Regression tests, do it now.
on 08-04-2013 12:14 AM

S46DFk Very good blog post.Thanks Again. Keep writing.

great link buildng wrote re: Regression tests, do it now.
on 08-21-2013 4:43 PM

FP3UXB Thanks-a-mundo for the blog post.Really looking forward to read more. Awesome.

awesome linkbuilding site wrote re: Regression tests, do it now.
on 10-01-2013 7:05 AM

thBwII Muchos Gracias for your blog post.Much thanks again. Really Cool.

smashing top seo wrote re: Regression tests, do it now.
on 10-24-2013 6:23 AM

qtAdHV I truly appreciate this post.Really looking forward to read more. Will read on...

crorkservice wrote re: Regression tests, do it now.
on 07-18-2014 11:15 PM

DfPqUA I really like and appreciate your blog post.Thanks Again. Cool.

matzcrorkz wrote re: Regression tests, do it now.
on 08-06-2014 8:53 AM

PuGOhD Major thanks for the article post.Really thank you! Want more.

Add a Comment

(required)  
(optional)
(required)  
Remember Me?

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)