DevPinoy.org
A Filipino Developers Community

>>> First two to make 3 wins! <<<

Saved by an automated test

Last week, I was assigned to fix a bug in my first project in my current company.  The said application was released months ago and is currently being used by our client.

Initially, the fix was just to move a particular line of code just above a conditional statement.  I am all set, ready to commit, but then I chose to do the checkin dance and run the test suite.  RED! - it's broken.  Good thing my teammate included the now broken test method, otherwise, the bug would have taken a longer time to surface, either on our territory or worse, with the client.  I remember dealing with this scenario in my previous projects without automated unit tests and continous integration setup, it was hell.


Posted 12-09-2006 2:44 AM by jokiz

Comments

cruizer wrote re: Saved by an automated tests
on 12-08-2006 10:20 PM

great job! score that one for having automated unit tests

jop wrote re: Saved by an automated tests
on 12-09-2006 1:41 AM

Good for you.

I hope you wrote a failing test before putting in your change. :D

Work from home. wrote Work from home.
on 06-02-2008 7:04 PM

Work from home.


Copyright DevPinoy 2005-2008