[Bps-public-commit] Plack-Middleware-Test-StashWarnings branch, master, updated. 0.07-4-g2b1505d

Alex Vandiver alexmv at bestpractical.com
Fri May 16 19:30:39 EDT 2014


The branch, master has been updated
       via  2b1505d29a94f51393b1795161abb9995b2b01b0 (commit)
       via  fdc172aecbffc8a37c5ff162135645bf26286ae9 (commit)
      from  9cfdedd6dcf303b0a6304260c6e28dd5f3aff101 (commit)

Summary of changes:
 Changes                                    |  4 ++++
 README                                     |  8 ++++++++
 lib/Plack/Middleware/Test/StashWarnings.pm | 12 +++++++++++-
 3 files changed, 23 insertions(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit fdc172aecbffc8a37c5ff162135645bf26286ae9
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Fri May 16 19:28:16 2014 -0400

    Document new "verbose" option, and why one would use it

diff --git a/lib/Plack/Middleware/Test/StashWarnings.pm b/lib/Plack/Middleware/Test/StashWarnings.pm
index ecbcb14..208ed7a 100644
--- a/lib/Plack/Middleware/Test/StashWarnings.pm
+++ b/lib/Plack/Middleware/Test/StashWarnings.pm
@@ -109,6 +109,16 @@ The warnings generated by your application are available at a special URL
 L<Test::WWW::Mechanize> you can just C<get> that URL and L<Storable/thaw> its
 content.
 
+=head1 ARGUMENTS
+
+Plack::Middleware::Test::StashWarnings takes one optional argument,
+C<verbose>, which defaults to C<$ENV{TEST_VERBOSE}>.  If set to true, it
+will bubble warnings up to any pre-existing C<__WARN__> handler.
+Turning this explicitly off may be useful if your tests load
+L<Test::NoWarnings> and also use L<Test::WWW::Mechanize::PSGI> for
+non-forking testing -- failure to do so would result in test failures
+even for caught warnings.
+
 =head1 RATIONALE
 
 Warnings are an important part of any application. Your web application should

commit 2b1505d29a94f51393b1795161abb9995b2b01b0
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Fri May 16 19:29:01 2014 -0400

    0.08 and its Changes

diff --git a/Changes b/Changes
index 0efd5a3..5fbf39d 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,9 @@
 Revision history for Perl extension Plack::Middleware::Test::StashWarnings
 
+0.08  2014-05-16
+        - Add a 'verbose' option to control if warnings are propagated
+          through to an existing WARN handler.
+
 0.07  2012-11-12
         - Test updates to work with newer Test::Harness
 
diff --git a/README b/README
index be17797..e9fab87 100644
--- a/README
+++ b/README
@@ -30,6 +30,14 @@ DESCRIPTION
     Test::WWW::Mechanize you can just "get" that URL and "thaw" in Storable
     its content.
 
+ARGUMENTS
+    Plack::Middleware::Test::StashWarnings takes one optional argument,
+    "verbose", which defaults to $ENV{TEST_VERBOSE}. If set to true, it will
+    bubble warnings up to any pre-existing "__WARN__" handler. Turning this
+    explicitly off may be useful if your tests load Test::NoWarnings and
+    also use Test::WWW::Mechanize::PSGI for non-forking testing -- failure
+    to do so would result in test failures even for caught warnings.
+
 RATIONALE
     Warnings are an important part of any application. Your web application
     should warn its operators when something is amiss.
diff --git a/lib/Plack/Middleware/Test/StashWarnings.pm b/lib/Plack/Middleware/Test/StashWarnings.pm
index 208ed7a..0472bed 100644
--- a/lib/Plack/Middleware/Test/StashWarnings.pm
+++ b/lib/Plack/Middleware/Test/StashWarnings.pm
@@ -2,7 +2,7 @@ package Plack::Middleware::Test::StashWarnings;
 
 use strict;
 use 5.008_001;
-our $VERSION = '0.07';
+our $VERSION = '0.08';
 
 use parent qw(Plack::Middleware);
 use Carp ();

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list