On Thu, May 15, 2008 at 2:34 PM, Gabor Szabo <[EMAIL PROTECTED]> wrote:

> Today I found out that if you skip_all tests while you have
> Test::NoWarnings your test
> will fail.
> Bad.    :-(
>

... and a work around I just found would be to load Test::NoWarnings
only after the call to plan() like this:

==================

use Test::More;

plan skip_all => 'Why not?';
plan tests => 2;

eval "use Test::NoWarnings";

ok(1)

==================

Gabor


-- 
Gabor Szabo http://szabgab.com/blog.html
Test Automation Tips http://szabgab.com/test_automation_tips.html

Reply via email to