[Chicago-talk] Test::More and Die

Jay Strauss me at heyjay.com
Thu Nov 20 09:30:43 CST 2003


Ah...

Thanks Andy (figured you'd respond, was going to send to you directly, but
at least this way its in the archives)

Jay
----- Original Message -----
From: "Andy Lester" <andy at petdance.com>
To: "Chicago.pm chatter" <chicago-talk at mail.pm.org>
Sent: Wednesday, November 19, 2003 11:45 PM
Subject: Re: [Chicago-talk] Test::More and Die


> > So if I have a test that I want to carp or die, like I would normally
> > if
> > "really" wrong input was supplied, how can I perform that test (i.e.
> > supply
> > wrong data that would normally make my module error out) and continue
> > with
> > the other tests?
>
> Take a look at Test::Warn, which traps and checks for warnings, and
> Test::Exception, which traps and checks for dying.
>
> xoa
>
> --
> Andy Lester
> andy at petdance.com, AIM:petdance
> http://petdance.com/ http://use.perl.org/~petdance/
>
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at mail.pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
>
>




More information about the Chicago-talk mailing list