The Artima Developer Community
Sponsored Link

.NET Buzz Forum
I’m you pusher. Unit tests are my drugs.

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
Raymond Lewallen

Posts: 312
Nickname: rlewallen
Registered: Apr, 2005

Raymond Lewallen is a .Net developer and Sql Server DBA
I’m you pusher. Unit tests are my drugs. Posted: Feb 23, 2006 1:49 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Raymond Lewallen.
Original Post: I’m you pusher. Unit tests are my drugs.
Feed Title: Raymond Lewallen
Feed URL: /error.htm?aspxerrorpath=/blogs/raymond.lewallen/rss.aspx
Feed Description: Patterns and Practices, OOP, .Net and Sql
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Raymond Lewallen
Latest Posts From Raymond Lewallen

Advertisement

I just finished a bunch of refactorings on some files in a project.  Nothing major, just your normal fixing of code smells and duplications that get left behind when you rush through some stuff.  So I finished all the refactorings I was going after and ran my unit tests.

Doesn’t that feel good?  Don’t you just love your unit tests?  I want to take them to bed with me and feed them strawberries and champagne.  I had to make the pic small cause there is a bunch of stuff in there that you aren't supposed to see :)

Yes, I did break 2 tests.  Both of which are easily fixable and will take less than a few minutes to rectify.  There were simply the tests that test the Object.Equals and Object.GetHashCode of one of my types.  Still, you people who have unit tests know how good it feels to see all the green lights light up and get that nice green bar in your unit test GUI.

I actually touched quite a few files (dozens).  Framework files, mind you.  Things that if broken would cause awful bad problems back up the dependency chain, as these files I changed are highly responsible to the other pieces of the application (thats high afferent coupling for you metrics geeks out there like me).

What a nice little security blanket.  Unit tests keep me all warm and fuzzy and feeling safe.  You’ve heard it plenty of times, you should have unit tests in place.  Every once in awhile I pull out the old GUI and run them that way instead of just getting a report or watching them run in the console.  The green lights are euphoric.  You should try it out.

Like that Ice-T song, “I’m Your Pusher”.  Lyrics were his drugs.  Well, I’m you pusher.  Unit tests are my drugs.  They’ll make you happy.

Read: I’m you pusher. Unit tests are my drugs.

Topic: Setting up a simple internet server (pt2) : it's all about AD Previous Topic   Next Topic Topic: FlexListViewer webpart

Sponsored Links



Google
  Web Artima.com   

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