wok-6.x view perl-test-warnings/description.txt @ rev 25563

New toolchain GCC 4.9.2, Glibc 2.19, Binutils 2.37
author Stanislas Leduc <shann@slitaz.org>
date Fri May 05 18:12:18 2023 +0200 (16 months ago)
parents
children
line source
1 If you've ever tried to use Test::NoWarnings to confirm there are no warnings
2 generated by your tests, combined with the convenience of done_testing to not
3 have to declare a test count, you'll have discovered that these two features
4 do not play well together, as the test count will be calculated before the
5 warnings test is run, resulting in a TAP error.
7 This module is intended to be used as a drop-in replacement for
8 Test::NoWarnings: it also adds an extra test, but runs this test before
9 done_testing calculates the test count, rather than after.
10 It does this by hooking into done_testing as well as via an END block.
11 You can declare a plan, or not, and things will still Just Work.