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

Re: on testing

Thread Previous | Thread Next
From:
schwern
Date:
June 4, 2001 09:04
Subject:
Re: on testing
Message ID:
20010604120410.D29982@magnonel.guild.net
On Mon, Jun 04, 2001 at 10:29:44AM -0400, John Peacock wrote:
> ASSUMPTION 1:
> All tests will eventually be rewritten to use Test::Harness

Umm, they already do.  t/TEST mirrors most of Test::Harness's
functionality, even TODO tests.  We can't use Test::Harness for basic
testing since if certain parts of perl are broken the tests will break
as well.  t/TEST is kept around for that.

Have you got Test::Harness mixed up with Test?


> MODIFICATION:
> Change Test::Harness to accept an additional parameter which signifies
> which tests are "interesting" and suppress _all_ output for other 
> tests, then kick into verbose for the flagged tests.  The parameter 
> should accept strings like "1-3,45" and deal with that.

Problem with this, as was the problem with the original skip
interface, is that if you add a test in the middle of your script you
have to reorder your list of interesting tests.

Instead, I'm planning on having Test::Harness simply dump the verbose
output to a file on each test run.  test.out or something.  That way
you always have the verbose output to look at if you're interested.
Sort of brute force, but covers all the bases without extra work for
the test author.


-- 
Michael G Schwern   <schwern@pobox.com>   http://www.pobox.com/~schwern/
Perl6 Quality Assurance     <perl-qa@perl.org>       Kwalitee Is Job One

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