Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: perl-Test-Warnings | Distribution: openSUSE Leap 15.2 |
Version: 0.026 | Vendor: openSUSE |
Release: lp152.3.2 | Build date: Fri Sep 20 18:19:26 2019 |
Group: Development/Libraries/Perl | Build host: lamb03 |
Size: 49239 | Source RPM: perl-Test-Warnings-0.026-lp152.3.2.src.rpm |
Packager: https://bugs.opensuse.org | |
Url: http://search.cpan.org/dist/Test-Warnings/ | |
Summary: Test for warnings and the lack of them |
If you've ever tried to use Test::NoWarnings to confirm there are no warnings generated by your tests, combined with the convenience of 'done_testing' to not have to declare a test count, you'll have discovered that these two features do not play well together, as the test count will be calculated _before_ the warnings test is run, resulting in a TAP error. (See 'examples/test_nowarnings.pl' in this distribution for a demonstration.) This module is intended to be used as a drop-in replacement for Test::NoWarnings: it also adds an extra test, but runs this test _before_ 'done_testing' calculates the test count, rather than after. It does this by hooking into 'done_testing' as well as via an 'END' block. You can declare a plan, or not, and things will still Just Work. It is actually equivalent to: use Test::NoWarnings 1.04 ':early'; as warnings are still printed normally as they occur. You are safe, and enthusiastically encouraged, to perform a global search-replace of the above with 'use Test::Warnings;' whether or not your tests have a plan. It can also be used as a replacement for Test::Warn, if you wish to test the content of expected warnings; read on to find out how.
Artistic-1.0 or GPL-1.0+
* Wed Jan 27 2016 coolo@suse.com - updated to 0.026 see /usr/share/doc/packages/perl-Test-Warnings/Changes 0.026 2016-01-27 03:13:25Z - fixed use of modules loaded by t/zzz-check-breaks.t - fix stderr suppression on perl 5.6 * Tue Jan 26 2016 coolo@suse.com - updated to 0.025 see /usr/share/doc/packages/perl-Test-Warnings/Changes 0.025 2016-01-24 02:59:28Z - prereqs lowered from required to suggested: - CPAN::Meta::Check - CPAN::Meta::Requirements - tests are now quieter to avoid causing confusion, by suppressing the printing of stderr in tests * Sat Dec 26 2015 coolo@suse.com - updated to 0.024 see /usr/share/doc/packages/perl-Test-Warnings/Changes 0.024 2015-12-24 18:44:29Z - remove diagnostics accidentally left in new test 0.023 2015-12-22 06:44:24Z - properly handle propagating warnings to previously declared handlers that are not coderefs (i.e. a sub name, or the magic DEFAULT and IGNORE) 0.022 2015-12-19 00:32:42Z - propagate all warnings to any previously-declared __WARN__ handlers (unlike with __DIE__, merely calling warn() is not sufficient) * Wed Apr 15 2015 coolo@suse.com - updated to 0.021 see /usr/share/doc/packages/perl-Test-Warnings/Changes 0.021 2015-03-21 18:48:27Z - add a x_breaks entry for conflicting versions of File::pushd which inadvertently call our exported warnings() rather than invoking warnings.pm, and documented this undesired interaction 0.020 2015-01-03 20:32:21Z - re-release to fix problematic $VERSION declaration (RT#101239) 0.019 2014-12-18 20:07:02Z - fix test to allow for special characters (e.g. MSWin32 file separators) in filenames (A. Sinan Unur, PR#7) 0.018 2014-12-17 18:17:30Z - fix test to not depend on message formatting changes in newer Carp 0.017 2014-12-16 20:17:22Z - handle other warning handlers passing us partial warning messages by re-adding the source file and line number * Mon Jul 28 2014 coolo@suse.com - updated to 0.016 - fix prereq problem with last release - now no longer testing the example scripts for user installs 0.015 2014-06-20 03:36:33Z - adjusted packaging and tests to become perl-5.6 friendly, including only using core or dual-lifed prerequisites 0.014 2014-03-01 22:08:26Z - fix test that was failing when FOO or BAR environment variables were set (RT#93447) 0.013 2013-12-14 21:26:06Z - update configure_requires checking in Makefile.PL * Mon Nov 25 2013 coolo@suse.com - updated to 0.012 - re-release to fix t/00-report-prereqs.t use of CPAN::Meta::Requirements - unnecessary tests removed; CONTRIBUTING file added * Fri Oct 04 2013 coolo@suse.com - updated to 0.010 - re-release with fixed compile test - fixed error in synopsis (we do not export anything by default) - a caveat added to the documentation regarding embedding warning checks inside another sub (this is for you, ribasushi!!!) - ':no_end_test' now also covers side effects of done_testing, as well as END blocks, making it possible to use the warning(s) subs without having an end warning test while using done_testing (necessary when combining with the 'if' pragma) * Mon Aug 05 2013 coolo@suse.com - fix usage of Module::Build::Tiny * Sat Jul 27 2013 coolo@suse.com - updated to 0.008 - compile test updated, to hopefully fix mswin32 parsing issues - fix subtest tests to work on Test::More before 0.95_01 (RT#86802) - remove use of Class::Method::Modifiers - new feature: warnings { code } and warning { code }, for capturing the contents of warnings for subsequent testing * Tue Jun 04 2013 coolo@suse.com - initial package 0.004 * created by cpanspec 1.78.06
/usr/lib/perl5/vendor_perl/5.26.1/Test /usr/lib/perl5/vendor_perl/5.26.1/Test/Warnings.pm /usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi /usr/share/doc/packages/perl-Test-Warnings /usr/share/doc/packages/perl-Test-Warnings/CONTRIBUTING /usr/share/doc/packages/perl-Test-Warnings/Changes /usr/share/doc/packages/perl-Test-Warnings/LICENCE /usr/share/doc/packages/perl-Test-Warnings/README /usr/share/doc/packages/perl-Test-Warnings/examples /usr/share/doc/packages/perl-Test-Warnings/examples/no_plan.t /usr/share/doc/packages/perl-Test-Warnings/examples/sub.t /usr/share/doc/packages/perl-Test-Warnings/examples/synopsis_1.t /usr/share/doc/packages/perl-Test-Warnings/examples/synopsis_2.t /usr/share/doc/packages/perl-Test-Warnings/examples/test_nowarnings.t /usr/share/doc/packages/perl-Test-Warnings/examples/test_warning_contents.t /usr/share/doc/packages/perl-Test-Warnings/examples/warning_like.t /usr/share/doc/packages/perl-Test-Warnings/examples/with_done_testing.t /usr/share/doc/packages/perl-Test-Warnings/examples/with_plan.t /usr/share/man/man3/Test::Warnings.3pm.gz
Generated by rpm2html 1.8.1
Fabrice Bellet, Tue Apr 9 11:50:38 2024