The Artima Developer Community
Sponsored Link

Weblogs Forum
A Set of Unit Testing Rules

50 replies on 51 pages. Most recent reply: Jan 21, 2011 2:19 AM by Steve Merrick

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 50 replies on 51 pages [ « | 1 ... 4 5 6 7 8 9 10 11 12 ... 51  | » ]
Ed Gibbs

Posts: 2
Nickname: edgibbs
Registered: Sep, 2005

Re: A Set of Unit Testing Rules Posted: Sep 9, 2005 9:32 PM
Reply to this message Reply
Advertisement
I think this is in keeping with real unit tests which should have as few dependencies as possible. I know when I figured out methods to mock or stub out dependencies on databases especially my unit testing running time went down by a factor of 10 or 100. And because I could close the feedback loop more quickly I wrote more tests and ended up with a lot less sneaky defects. Now if I see some dependency on the filesystem or some other object I'll try to find the fastest way to remove it so I can right true unit tests instead of less useful integration tests. Understanding and writing true unit tests has really moved my skills as a developer along. Now I just need to impart that experience to many of my direct reports. And I still write some integration, functional, or end to end GUI tests, I just let Cruisecontrol run them for me.

Flat View: This topic has 50 replies on 51 pages [ « | 4  5  6  7  8  9  10  11  12 | » ]
Topic: Computer About to Play Jeopardy Previous Topic   Next Topic Topic: The Search for Requirements

Sponsored Links



Google
  Web Artima.com   

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