develooper Front page | perl.perl5.porters | Postings from June 2001

Re: on testing

Thread Previous | Thread Next
From:
Michael G Schwern
Date:
June 7, 2001 03:11
Subject:
Re: on testing
Message ID:
20010607111108.I684@blackrider.blackstar.co.uk
On Wed, Jun 06, 2001 at 11:11:20AM +0200, Roland Giersig wrote:
> just read the p5p summary and would like to jump in with a suggestion
> regarding identifying tests:  how about using filename and linenumbers
> to additionally tag a test result, especially a failing one?

Why that's such a good idea, I went back in time and implemented it in
Test, Test::Simple and Test::More months ago! ;)


> Also, I'd strongly recommend to change the behaviour to print the string
> in case of FAILURE only, 'cause that's the case everybody is most
> interested in.  Nobody cares in detail which test goes OK, right?

Any particular reason?  I don't find it cluttering.  Just printing the
test name on success, not the file and line number.


> You could use 'die' semantics here: if the comment string ends
> in "\n", no file/line would be printed.  If no comment string is given,
> "test failed at" is printed.

Interesting, but is it useful?

-- 

Michael G. Schwern   <schwern@pobox.com>    http://www.pobox.com/~schwern/
Perl6 Quality Assurance     <perl-qa@perl.org>	     Kwalitee Is Job One
<GuRuThuG> make a channel called #Perl, and infest it with joking and 
	   fun.... it doesnt make alot of sense.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About