wok diff perl-test-nowarnings/description.txt @ rev 25092
updated pari and pari-dev (2.11.3 -> 2.13.4)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 18 10:01:45 2022 +0100 (2022-06-18) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/perl-test-nowarnings/description.txt Sat Jun 18 10:01:45 2022 +0100 1.3 @@ -0,0 +1,14 @@ 1.4 +In general, your tests shouldn't produce warnings. 1.5 +This modules causes any warnings to be captured and stored. 1.6 +It automatically adds an extra test that will run when your script ends 1.7 +to check that there were no warnings. 1.8 +If there were any warnings, the test will give a "not ok" and diagnostics 1.9 +of where, when and what the warning was, including a stack trace of what 1.10 +was going on when the it occurred. 1.11 + 1.12 +If some of your tests are supposed to produce warnings then you should be 1.13 +capturing and checking them with Test::Warn, that way Test::NoWarnings 1.14 +will not see them and so not complain. 1.15 + 1.16 +The test is run by an END block in Test::NoWarnings. 1.17 +It will not be run when any forked children exit.