Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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

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!


New address of my CGI Course.

Replies are listed 'Best First'.
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?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2023-06-07 12:47 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (29 votes). Check out past polls.