RE: Testing Searcher Object

"'Donaldson, John' [email protected] [testdrivendevelopment]" <[email protected]> Mon, 26 May 2014 15:36:47 +0000
Newsgroups gmane.comp.programming.test-driven-development
Message-ID <716D07F3CBA94244A0922E7A99837C3A244EE505@G5W2731.americas.hpqcorp.net>
Eikonne,

I’d probably start like this (and then let the code take me):

-          Set up a failing test which is an interesting combination of input categories

-          To get that passing, for each category set up tests which get a hit if a search target is there, and no hit if a search target is not there.

-          Some examples of multiple hits

-          My first test is green yet?

I would not be trying for all combinations, but I’d likely be looking for edge cases.
And wondering if categories can overlap.

John D.

From: [email protected] [mailto:[email protected]]
Sent: 26 May 2014 17:16
To: testdrivendevelopment
Subject: [TDD] Testing Searcher Object




[https://mail.google.com/mail/u/0/images/cleardot.gif]
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?

Thanks.

--
blog: http://eikonne.wordpress.com<http://eikonne.wordpress.com/>
twitter: @eikonne