wok-6.x annotate perl-test-warnings/description.txt @ rev 24652

updated i3 and i3-man (4.19.2 -> 4.20.1)
author Hans-G?nter Theisgen
date Fri Mar 11 06:27:26 2022 +0100 (2022-03-11)
parents
children
rev   line source
Hans-G?nter@24260 1 If you've ever tried to use Test::NoWarnings to confirm there are no warnings
Hans-G?nter@24260 2 generated by your tests, combined with the convenience of done_testing to not
Hans-G?nter@24260 3 have to declare a test count, you'll have discovered that these two features
Hans-G?nter@24260 4 do not play well together, as the test count will be calculated before the
Hans-G?nter@24260 5 warnings test is run, resulting in a TAP error.
Hans-G?nter@24260 6
Hans-G?nter@24260 7 This module is intended to be used as a drop-in replacement for
Hans-G?nter@24260 8 Test::NoWarnings: it also adds an extra test, but runs this test before
Hans-G?nter@24260 9 done_testing calculates the test count, rather than after.
Hans-G?nter@24260 10 It does this by hooking into done_testing as well as via an END block.
Hans-G?nter@24260 11 You can declare a plan, or not, and things will still Just Work.