I wasn't aware of this module.  It worked like a charm!  Thanks!

On Tue, Sep 14, 2010 at 2:15 PM, Karen Etheridge <[email protected]> wrote:
>
> On Tue, Sep 14, 2010 at 02:05:29PM -0400, Marcos Barbeitos wrote:
>> Hi!  I just started using Moose in this project I've been working on.
>> I am preparing a test suite and I'd like to test if type checking was
>> effectively implemented in a couple of modules.  In order to do that,
>> some of the tests actually cause Moose to die, but Moose won't go
>> silently and the long stack backtrace clutters the test suite output.
>> Is there anyway of suppressing the warnings? I tried to set
>> $Carp::Verbose to 0 in the package I wrote with Moose, to no avail.
>> Thanks!
>
> Are you capturing the errors it is producing when it dies? If so, it
> shouldn't be cluttering the rest of your tests.. see dies_ok and throws_ok
> in Test::Exception.
>
>
> --
>         I choose to see your feelings of powerlessness as a "choice"
>          because I need to believe in free will to assuage my guilt
>               over my absurdly luxurious lifestyle. - suck.com
>            .             .            .            .             .
> Karen Etheridge, [email protected]       GCS C+++$ USL+++$ P+++$ w--- M++
> http://etheridge.ca/                      PS++ PE-- b++ DI++++ e++ h(-)
>



-- 
Marcos S. Barbeitos
Post-doctoral researcher
American Museum of Natural History
Department of Invertebrate Zoology
79th st and Central Park West
New York, NY 10024

Reply via email to