Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Help Us With Test::Harness 3.0

by Ovid (Cardinal)
on Jul 23, 2007 at 09:41 UTC ( #628195=perlnews: print w/ replies, xml ) Need Help??

To get ready for a Test::Harness 3.0 beta (using TAP::Parser), we need to improve our docs and our code coverage. Patches very, very welcome. The system appears to be relatively stable and if you want to create patches directly against our repository, you can:

    svn checkout http://svn.hexten.net/tapx

You can also subscribe to the TAP-Parser dev mailing list.

When we feel comfortable with our test coverage and our docs, we'll put a beta out, to eventually be followed by a release candidate.

And now for some background. If you've been testing for a while, particularly if you're used to testing in other programming languages, you probably know that Test::Harness, while extremely useful, is also rather limited. It's difficult to extend TAP, very hard to override the handling of individual tests and slapping on alternate views has proved almost impossible. Shortly after Schwern posted a roadmap for creating a new harness, I've been working on TAP::Parser. With the core of the parser done and stable, Andy Armstrong took over lead development and Eric Wilhelm has also pitched in with some excellent bug fixes and tests.

Replacing Test::Harness with TAP::Parser already has the blessing of the the maintainers and Perl pumpkings and we think we're finally at the point to consider this, particularly since most of the bugs in the Test::Harness RT queue are fixed in TAP::Parser. What we really need now is for more people to download TAP::Parser and start using it. TAP::Parser comes with runtests (analogous to prove) and if all you do is use runtests instead of prove when you test, that would be a big help.

Our biggest concern is stability. This will affect many thousands of users, so we're highly unlikely to get too creative with this. We have plenty of plans for future work, but for now, we want to finally push this forward and give you the new Test::Harness 3.0. However, we'll consider any and all requests.

If you'll be at Vienna for this year's YAPC::EU, I'll be giving a talk about Test::Harness 3.0. Come see the talk and ask me what you can do to help!

Cheers,
Ovid

New address of my CGI Course.

Comment on Help Us With Test::Harness 3.0
thanks for TAP::Parser
by markjugg (Curate) on Jul 23, 2007 at 16:43 UTC
    Thanks for the contributors for this new project. It definitely contributes to making the Perl experience an even more pleasant one.

    I have used "runtests" myself and appreciate the new approach and features.

Re: Help Us With Test::Harness 3.0
by markjugg (Curate) on Jul 25, 2007 at 02:52 UTC
    It's a small thing, but I think supporting the "-V" and "--version" flags from prove would be nice. The patch is essentially a small addition to GetOpts:
    'V|version' => sub { print_version(); exit; },
    And then:
    sub print_version { printf( "prove v%s, using Test::Harness v%s and Perl v%vd\n", $VERSION, $Test::Harness::VERSION, $^V ); }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlnews [id://628195]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2014-08-27 17:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (247 votes), past polls