Arnon Rotem-Gal-Oz's Cirrus Minor
"Making IT work" - Musings of a Holistict Architect
Navigation for Arnon Rotem-Gal-Oz's Cirrus Minor - TDD tidbit - Who tests the tests?
Content
Sidebar
Footer
October 18, 2007
@ 02:02 PM
Comments [2]
TDD tidbit - Who tests the tests?
One question I
don't
hear asked too much is "who tests the tests?" - after all we are writing all this additional code - if we write so many bugs in our production code that we need tests - what are the chances the test code is clean?
The current answer I have is that the code, the tests and the acceptance tests all test each other so if one fails we'll spot the problem in at least one of the others. I hope that this it is a good enough answer... :)
What do you think?
Tags:
Everything
|
TDD
Related posts:
Sleep tight, don't let the test bugs bite
Why arbitrary tier-splitting is bad
Ignorance I tell you. It is all ignorance
Use Cases and User Stories
Mozila Prism - yet more web/desktop convergence evidance
Microsoft "Oslo"
« Who needs an architect anyway? Part I
|
Home
|
Functional programming - F# and Erlang »
Thursday, October 18, 2007 8:27:14 PM (GMT Standard Time, UTC+00:00)
For 90% of my test functions, they are simple enough to be self evident. If I get a failure, the first thing I do is reivew the test for errors and get more eyes onto the test to ensure that they are doing what they are supposed to be doing.
In the event that the test contains a complex construct, I do place 'Tests for the test' that are themselves simple enough to be self-evident in their correctness.
I then immediately set about to change the design in such a way that the complex testing structure is no longer required.
Steven Mitcham
Thursday, October 18, 2007 10:36:38 PM (GMT Standard Time, UTC+00:00)
Hi Steven,
Thanks for the comment
Making sure the test works (as in runs) is the simple part - making sure it tests the what's needed is the more tricky part. After all both the test and the code are written by the same person. That's what makes the acceptance tests so important, they are written by someone else so you get a "second opinion" on what you are doing.
Arnon
Arnon Rotem-Gal-Oz
Comments are closed.
RSS/Subscribe
Navigation
Home
Papers, Articles & Presentations
SPAMMED Architecture Framework
SOA Patterns
About Me
My Dr. Dobb's Journal Blog
Search
Featured Presentations & Papers
SOA Pattern Presentation (pdf)
Fallacies of Distributed Computing (pdf)
Getting SPAMMED for architecture (pdf)
OO Primer (ppt)
Use Case Methodology for large systems (pdf)
Use Cases Methodology for large systems (ppt)
Software Architecture (ppt)
Service Oriented Architecture - Intro (ppt)
What is SOA anyway? (pdf)
O/R Mapping: Why/When (pdf)
Order my SOA Patterns Book
Published Patterns
Edge Component (pdf)
Gridable Service (pdf)
Service Firewall (html @ InfoQ)
Saga (pdf)
Top Posts
What I am reading
Subscribe to RSS headline updates from:
Tag Cloud
.NET (58)
A&D2007 (6)
Agile (16)
BI (2)
dasBlog (1)
data (4)
Design (19)
ESB (1)
Everything (200)
Functional Languages (1)
General (56)
Java (5)
Mobile (1)
new (3)
OO (10)
PaperLnx (6)
Papers (2)
Project Management (5)
refactoring (1)
Requirements (2)
REST (10)
RIA (1)
ruby (8)
scalability (6)
SCRUM (2)
SOA (72)
SOA Patterns (30)
Software Architecture (162)
SPAMMED Process (33)
TDD (3)
Trends (7)
xsights (1)
Archives
July, 2008 (3)
June, 2008 (5)
May, 2008 (4)
April, 2008 (4)
March, 2008 (6)
February, 2008 (3)
January, 2008 (5)
December, 2007 (9)
November, 2007 (6)
October, 2007 (11)
September, 2007 (11)
August, 2007 (10)
July, 2007 (9)
June, 2007 (9)
May, 2007 (9)
April, 2007 (6)
March, 2007 (4)
February, 2007 (2)
January, 2007 (5)
December, 2006 (4)
November, 2006 (3)
October, 2006 (4)
September, 2006 (2)
August, 2006 (4)
July, 2006 (3)
June, 2006 (4)
May, 2006 (10)
April, 2006 (8)
March, 2006 (8)
February, 2006 (6)
January, 2006 (6)
December, 2005 (3)
November, 2005 (5)
October, 2005 (6)
September, 2005 (10)
August, 2005 (5)
July, 2005 (15)
June, 2005 (16)
All dates
All Posts
Contact the Author
Contact Arnon
Affiliations
Admin
Sign In