[Bps-public-commit] r12350 - in Test-Tagged: . lib/App lib/App/Prove lib/App/Prove/Plugin

sartak at bestpractical.com sartak at bestpractical.com
Thu May 15 09:27:35 EDT 2008


Author: sartak
Date: Thu May 15 09:27:35 2008
New Revision: 12350

Added:
   Test-Tagged/lib/
   Test-Tagged/lib/App/
   Test-Tagged/lib/App/Prove/
   Test-Tagged/lib/App/Prove/Plugin/
   Test-Tagged/lib/App/Prove/Plugin/Tagged.pm
Modified:
   Test-Tagged/   (props changed)

Log:
 r55913 at onn:  sartak | 2008-05-15 09:24:43 -0400
 App::Prove::Plugin::Tagged which sets the env var TEST_TAGGED_TAGS


Added: Test-Tagged/lib/App/Prove/Plugin/Tagged.pm
==============================================================================
--- (empty file)
+++ Test-Tagged/lib/App/Prove/Plugin/Tagged.pm	Thu May 15 09:27:35 2008
@@ -0,0 +1,59 @@
+#!/usr/bin/env perl
+package App::Prove::Plugin::Tagged;
+use strict;
+use warnings;
+
+our $VERSION = '0.01_01';
+
+sub import {
+    my $class = shift;
+    my @tags = @_;
+
+    $ENV{TEST_TAGGED_TAGS} = join ' ', @tags;
+}
+
+1;
+
+__END__
+
+=head1 NAME
+
+App::Prove::Plugin::Tagged - run specifically-tagged tests
+
+=head1 SYNOPSIS
+
+    # run tests tagged "web"
+    prove -PTagged=web
+
+    # run tests tagged "regression"
+    prove -PTagged=regression
+
+    # run IM and email tests
+    prove -PTagged=im,email
+
+    # run tests with any and all tags
+    prove
+
+=cut
+
+=head1 SEE ALSO
+
+L<Test::Tagged>, L<App::Prove>
+
+=head1 AUTHOR
+
+Shawn M Moore, C<< <sartak at bestpractical.com> >>
+
+=head1 BUGS
+
+Please report any bugs or feature requests to
+C<bug-test-tagged at rt.cpan.org>, or through the web interface at
+L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Tagged>.
+
+=head1 LICENSE
+
+Copyright 2008 Best Practical Solutions, LLC.
+Test::Tagged is distributed under the same terms as Perl itself.
+
+=cut
+



More information about the Bps-public-commit mailing list