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 ... 17 18 19 20 21 22 23 24 25 ... 51  | » ]
Curt Sampson

Posts: 21
Nickname: cjs
Registered: Mar, 2004

Re: A Set of Unit Testing Rules Posted: Sep 12, 2005 7:33 AM
Reply to this message Reply
> One thing that is interesting about this thread is that
> many are irked by the def of UTs that I laid out. The
> thing is, I'm not trying to change the def in the
> industry. But locally, with some teams, it's a great way
> to focus.

I guess my issue with that is that it's just one way to focus, and it may be the wrong way to focus. In particular, I've worked with people who make comments like this:

Besides being slow, critical dependencies also have another nasty property: We can't ensure the availability of the resource being dependent on.

Sure, one approach is not to do those tests. But another is to figure out how you *can* ensure the availability of that resource. Often it requires getting pretty creative. A few years ago it even required moving an entire project from Oracle to PostgreSQL, so that everybody could have their own database server, with as many schemas as they wanted. That took a lot of work and negotiation, but it was well worthwhile in the end, because not only did the database stop being a "critical resource" that was blocking testing, but it in fact was brought into the agile world, letting us make database changes almost as easily as other code changes. I've done other creative solutions for things such as e-mail sending and receiving and external credit card transaction servers.

Flat View: This topic has 50 replies on 51 pages [ « | 17  18  19  20  21  22  23  24  25 | » ]
Topic: Computer About to Play Jeopardy Previous Topic   Next Topic Topic: The Search for Requirements

Sponsored Links


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