2009/3/13 Evgeny <evgeny.zis...@gmail.com>:
> I actually put a link to the FAQ at the very first mail I sent.It does not
> address my questions, it gives examples that say "we can't count tests ahead
> of time, its impossible". But I just want you to change the approach from
> "ahead of time" into "realtime" or something ... like all the other testing
> frameworks do it.

Test::More does count the tests in "realtime", then at the end it
compares this count to what you declared it should be. The count in
the plan is like a checksum. If you don't want a checksum that's fine,
us no_plan or somesuch.

Just last week I found myself swearing at pyUnit for the lack of this
kind of checksum -  a test I had written wasn't actually dong
anything. It was always returning early without asserting anything. Of
course the mistake was mine but then if I didn't make mistakes, I
wouldn't need a test suite and if I could have declared a plan, I
would have caught it long ago.

Tests find bugs in your app code. plans find bugs in your testing code,

F

> On Fri, Mar 13, 2009 at 2:52 PM, Ovid <publiustemp-perl...@yahoo.com> wrote:
>
>>
>> ----- Original Message ----
>>
>> > From: Gabor Szabo <szab...@gmail.com>
>>
>> > On Fri, Mar 13, 2009 at 2:40 PM, Evgeny wrote:
>> > > If my script ended early, because maybe even a core dump ... the I wont
>> > > care. It's just another case of a failed test that cant be reported by
>> > > Test::More, but a human looking at the screen will hopefully understand
>> what
>> > > happened.
>> >
>> > Human?
>> >
>> > Why would a human look at a test report that says "everything is ok"?
>>
>> Don't we have a FAQ about this somewhere?  Evgeny's questions are quite
>> reasonable, but we're answering them every few months.  It would be nice to
>> link to a FAQ and be done with it.
>>
>>
>> Cheers,
>> Ovid
>> --
>> Buy the book         - http://www.oreilly.com/catalog/perlhks/
>> Tech blog            - http://use.perl.org/~Ovid/journal/
>> Twitter              - http://twitter.com/OvidPerl
>> Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
>>
>>
>

Reply via email to