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 Tumbleweed |
Version: 0.38.0 | Vendor: openSUSE |
Release: 1.1 | Build date: Sun Feb 2 06:29:57 2025 |
Group: Unspecified | Build host: reproducible |
Size: 63341 | Source RPM: perl-Test-Warnings-0.38.0-1.1.src.rpm |
Packager: https://bugs.opensuse.org | |
Url: https://metacpan.org/release/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-or-later
* Sun Feb 02 2025 Tina Müller <timueller+perl@suse.de> - updated to 0.38.0 (0.038) see /usr/share/doc/packages/perl-Test-Warnings/Changes 0.038 2025-02-02 00:27:04Z - no longer swap out done_testing method if :no_end_test is configured * Mon Jan 06 2025 Tina Müller <timueller+perl@suse.de> - updated to 0.37.0 (0.037) see /usr/share/doc/packages/perl-Test-Warnings/Changes 0.037 2025-01-05 20:38:16Z - remove unneeded use of Import::Into - fix tests that invoke Test::Warnings->import directly 0.036 2025-01-03 18:30:28Z - avoid redefinition warnings when $^W is enabled in tests (RT#158297) 0.035 2025-01-03 17:47:24Z - allow tests to pass even when Import::Into is not installed (RT#158296) - add backcompat shim for cases where Test::More is loaded in tests after Test::Warnings 0.034 2025-01-03 02:46:29Z - fix Test2 compability for done_testing() - Test2::Warnings added as a simple wrapper (for now) * Fri Mar 08 2024 Tina Müller <tina.mueller@suse.com> - Fix disabling of __perllib_provides * Wed Jan 24 2024 Tina Müller <timueller+perl@suse.de> - updated to 0.033 see /usr/share/doc/packages/perl-Test-Warnings/Changes 0.033 2024-01-23 03:31:29Z - add Test2 compatibility in the test triggered by done_testing(); - new long-awaited feature (!!!) "allow_patterns", to either temporarily or globally exempt particular warning patterns * Sun Oct 01 2023 Tina Müller <timueller+perl@suse.de> - updated to 0.032 see /usr/share/doc/packages/perl-Test-Warnings/Changes 0.032 2023-09-30 23:36:50Z - new config variable, $ENV{PERL_TEST_WARNINGS_ONLY_REPORT_WARNINGS}, for temporarily turning failures into reports * Wed Jul 14 2021 Tina Müller <timueller+perl@suse.de> - updated to 0.031 see /usr/share/doc/packages/perl-Test-Warnings/Changes 0.031 2021-07-13 22:13:48Z - remove unneeded develop prereqs that caused metacpan to unduly raise the river position of some dependent modules * Sun Mar 22 2020 <timueller+perl@suse.de> - updated to 0.030 see /usr/share/doc/packages/perl-Test-Warnings/Changes 0.030 2020-03-21 16:56:30Z - fix tests that can fail when there is already an installed module named Foo::Bar::Baz (RT#132140) * Sun Mar 15 2020 <timueller+perl@suse.de> - updated to 0.029 see /usr/share/doc/packages/perl-Test-Warnings/Changes 0.029 2020-03-14 05:27:59Z - new :report_warnings feature, for printing all of the (unexpected) warning content when had_no_warnings() is called (Tina Mueller, PR#10) * Sun Dec 22 2019 <timueller+perl@suse.de> - updated to 0.028 see /usr/share/doc/packages/perl-Test-Warnings/Changes 0.028 2019-12-21 20:16:01Z - allow for calling warnings->import being called after importing the "warnings" sub * Mon Sep 30 2019 <timueller+perl@suse.de> - updated to 0.027 see /usr/share/doc/packages/perl-Test-Warnings/Changes 0.027 2019-09-28 03:54:47Z - new :fail_on_warning feature, for more easily seeing where the surprising warning appeared during testing
/usr/lib/perl5/vendor_perl/5.40.0/Test /usr/lib/perl5/vendor_perl/5.40.0/Test/Warnings.pm /usr/lib/perl5/vendor_perl/5.40.0/Test2 /usr/lib/perl5/vendor_perl/5.40.0/Test2/Warnings.pm /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/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/licenses/perl-Test-Warnings /usr/share/licenses/perl-Test-Warnings/LICENCE /usr/share/man/man3/Test2::Warnings.3pm.gz /usr/share/man/man3/Test::Warnings.3pm.gz
Generated by rpm2html 1.8.1
Fabrice Bellet, Wed Feb 12 23:53:52 2025