SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.
Name perl-test-warnings
Version 0.031
Category development
Description Perl extension Test::Warnings.
Maintainer nneul​@​neulinger.org
License GPL
Website https://metacpan.org/pod/Test::Warnings
Sizes
Depends onperl iconperl 
perl-test-warnings screenshot
Download package perl-test-warnings screenshot
Show receipt
Show files list
Show cooking log

Description

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.

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 donetesting calculates the test count, rather than after. It does this by hooking into donetesting as well as via an END block. You can declare a plan, or not, and things will still Just Work.

6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)