wok-current annotate perl-test-nowarnings/description.txt @ rev 25525
created recipe for lua5.1-lpeg 1.0.2
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 17:54:40 2023 +0100 (18 months ago) |
parents | |
children |
rev | line source |
---|---|
Hans-G?nter@24257 | 1 In general, your tests shouldn't produce warnings. |
Hans-G?nter@24257 | 2 This modules causes any warnings to be captured and stored. |
Hans-G?nter@24257 | 3 It automatically adds an extra test that will run when your script ends |
Hans-G?nter@24257 | 4 to check that there were no warnings. |
Hans-G?nter@24257 | 5 If there were any warnings, the test will give a "not ok" and diagnostics |
Hans-G?nter@24257 | 6 of where, when and what the warning was, including a stack trace of what |
Hans-G?nter@24257 | 7 was going on when the it occurred. |
Hans-G?nter@24257 | 8 |
Hans-G?nter@24257 | 9 If some of your tests are supposed to produce warnings then you should be |
Hans-G?nter@24257 | 10 capturing and checking them with Test::Warn, that way Test::NoWarnings |
Hans-G?nter@24257 | 11 will not see them and so not complain. |
Hans-G?nter@24257 | 12 |
Hans-G?nter@24257 | 13 The test is run by an END block in Test::NoWarnings. |
Hans-G?nter@24257 | 14 It will not be run when any forked children exit. |