Front page | perl.qa |
Postings from January 2005
Pattern patch for prove
From:
Ovid
Date:
January 24, 2005 13:30
Subject:
Pattern patch for prove
Hi all,
Long before prove came along, I used a program named "grind" to manage
my test suites. One thing that grind had that prove does not was the
ability to specify *which* tests to run. grind did it via shell
expansion and that was terrible. Andy sensibly did not include that in
prove.
I want that back, however, so I've included a patch that allows prove
to run tests based upon a pattern. So if you're heavily focused on
your "Customer" behavior and you want to just run those tests:
prove -p '*cust*' t/
prove --pattern='*cust*' t/
Patterns must be valid Perl regular expressions and prove will die if
an invalid pattern is supplied.
Comments welcome.
Cheers,
Ovid
=====
If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/
-
Pattern patch for prove
by Ovid