¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

[TDD] Testing Searcher Object


 

Eb,

On 5/26/14, 11:16 AM, Eb amaeze@... [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 *
Software Development
Consultant and Coach
----------------------------------------------------------------------