Hi!

Sometimes I want to test,
whether a module gives a (special) warning or not.

I couldn't find a module doing this job on CPAN,
so I'm ready to write a Test::Warn module.

I thought that two methods should be implemented:
warns_ok     BLOCK  REGEX, TEST_NAME   (regex and test_name are optional)
no_warns_ok  BLOCK  TEST_NAME          (test_name is optional)

(similar to throws_ok and lives_ok from Test::Exception)


I'd like to know what you are thinking about ?, especially:
 - is it already on CPAN
 - Name: Test::Warn / Test::Warning / Test::Warnings / ...
 - method names
 - missing functionality


Thanks in advance,
Janek

Reply via email to