Search the web
Sign In
New User? Sign Up
testdrivendevelopment · Test-driven Development
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Agile response to combinatorial explosion   Message List  
Reply | Forward Message #31364 of 32127 |
RE: [TDD] Agile response to combinatorial explosion

Andrew,

One interesting question is how did all those config options get there?
Theoretically, because you had a failing test, right? And, without meaning to,
some of your configuration options were not independent from each other, so you
created unexpected interactions. So that eventually you had things happening
outside of your test suite boundary.

Personally, I think we create systems which are complex, too complex to expect
100% coverage and so we live with the holes in the coverage (we can't cover the
whole ;-)). We use some kind of judgment or intuition or experience to tell us
where we need to add some tests because we suspect we've created a hole. So, use
the unexpected failure to create some new tests, and take that experience to
your next project.

I suppose if you are worried about other undiscovered failures, you could create
a test tool to cycle through all the possible combinations.

John D.

-----Original Message-----
From: testdrivendevelopment@yahoogroups.com
[mailto:testdrivendevelopment@yahoogroups.com] On Behalf Of Andrew Wagner
Sent: 09 July 2009 17:03
To: testdrivendevelopment@yahoogroups.com
Subject: [TDD] Agile response to combinatorial explosion

I'm trying to figure out the right approach in my thinking here. Suppose you
have an application which has 10 different configuration options. Each
option has 3 different settings. It doesn't take rocket science to figure
out that this means 3^10 or over 59000 configurations. And those are small
numbers! Certainly we can't write a test for every single one of these
cases. Yet it's also hard to be absolutely sure that they're completely
independent. I recently had a UI bug that was unexpectedly caused by bad
data in a completely different area of the site, and I really don't think it
was caused by poor design. So what do we make of this? How shall we then
test?


[Non-text portions of this message have been removed]



------------------------------------

Yahoo! Groups Links






Fri Jul 10, 2009 9:59 am

geo_johnfr
Offline Offline
Send Email Send Email

Forward
Message #31364 of 32127 |
Expand Messages Author Sort by Date

I'm trying to figure out the right approach in my thinking here. Suppose you have an application which has 10 different configuration options. Each option has...
Andrew Wagner
wagner.andrew99
Offline Send Email
Jul 10, 2009
4:33 am

Hi Andrew, I'm trying to figure out the right approach in my thinking here. Suppose you ... One common approach is to make this simplifying assumption: Most ...
Dale Emery
dalehemery
Offline Send Email
Jul 10, 2009
4:50 am

If you're working in the .NET world, either NUnit or MbUnit have a Pairwise attribute used to generate test cases from a set of parameter values. Charlie...
Charlie Poole
cpoole98370
Offline Send Email
Jul 10, 2009
6:17 am

... I read an article on testing quite a while ago that has stuck with me. It discusses pairwise testing, n-wise testing for the larger tuples as mentioned...
Kaleb Pederson
kaleb_pederson
Offline Send Email
Jul 10, 2009
3:57 pm

Andrew, One interesting question is how did all those config options get there? Theoretically, because you had a failing test, right? And, without meaning to,...
Donaldson, John (GEO)
geo_johnfr
Offline Send Email
Jul 10, 2009
10:00 am

@Andrew The thing that jumps to my mind is that you have some coupling between the code or maybe you're violating DRY someplace. When you describe having...
Joseph Gutierrez
gutzofter
Offline Send Email
Jul 11, 2009
3:37 am

I have no doubt that DRY is violated in this code -- it's legacy code that doesn't have tests around it, and is a bit....lacking in the good design department....
Andrew Wagner
wagner.andrew99
Offline Send Email
Jul 12, 2009
5:44 pm

I see combinatorial explosions as a design opportunity, not a testing opportunity. If I have five features that need to run on six versions of Eclipse, I could...
kentb
kentlbeck
Offline Send Email
Jul 11, 2009
4:23 pm

... But, how do you test that you have achieved this design criteria? Can you be sure you have met this objective without tests to verify it? So, if you...
Steven Gordon
sfman2k
Offline Send Email
Jul 11, 2009
5:21 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help