Re: Is this a test? Is this only a test?

2007-07-30 Thread Russell Keith-Magee
On 7/31/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > Is there an easy way to tell if something is running as a test so that I > can mock that behavior? I'm thinking of something like ... > Or maybe this isn't the right approach at all and I'm missing something > that would make this easier. Ad

Is this a test? Is this only a test?

2007-07-30 Thread Todd O'Bryan
Some of my pages fetch data based on user input. It obviously doesn't make sense to do the actual fetch in test cases, since I should know what is going to be returned and should be checking for what I do with the data. Is there an easy way to tell if something is running as a test so that I can