Re: Testing Searcher Object
"George Dinwiddie [email protected] [testdrivendevelopment]" <[email protected]> Mon, 26 May 2014 21:06:39 -0400
| Newsgroups | gmane.comp.programming.test-driven-development |
|---|---|
| Organization | iDIA Computing, LLC |
| Message-ID | <[email protected]> |
Eb, On 5/26/14, 11:16 AM, Eb [email protected] [testdrivendevelopment] wrote: > > > Hi - > > We were having a conversation about testing a "searcher" object. > Basically, this object does a search based on the inputs passed into > it. Do tests have to be written for every permutation of inputs for the > class to have been tested properly? Remember, the point of TDD is more to drive the design than to "test properly." That said, I wouldn't ever expect to test all permutations of something with a lot of permutations. I would check each input separately. If you want to go further, you might look at pair-wise permutations, and perhaps one or two "complicated" searches for peace of mind. - George -- ---------------------------------------------------------------------- * George Dinwiddie * http://blog.gdinwiddie.com Software Development http://www.idiacomputing.com Consultant and Coach http://www.agilemaryland.org ---------------------------------------------------------------------- ------------------------------------ Posted by: George Dinwiddie <[email protected]>