develooper Front page | | Postings from March 2009

Re: Counting tests

Thread Previous | Thread Next
March 13, 2009 09:21
Re: Counting tests
Message ID:
Hmm... to know that everything is ok? :)If someone put an "exit" in the
middle of the code, then yes - it's a problem in perl, since you cant make
Test::More catch that exit and replace it with "print test results and then

But other than that, if errors occur and the code runs "die" in the middle
of the testing - the hopefully the exit code will not only tell the human,
but also the automaton that there was something wrong. Even though the tests
were not finished.

On Fri, Mar 13, 2009 at 2:45 PM, Gabor Szabo <> wrote:

> 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"?
> Gabor
> Perl 6 Tricks and Treats

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About