¿ªÔÆÌåÓý

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

[TDD] Testing Searcher Object


Donaldson, John
 

¿ªÔÆÌåÓý

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: testdrivendevelopment@... [mailto:testdrivendevelopment@...]
Sent: 26 May 2014 17:16
To: testdrivendevelopment
Subject: [TDD] Testing Searcher Object

?




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:

twitter: @eikonne