Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Can I use Test::Differences with Test::LectroTest?by tmoertel (Chaplain) |
on Feb 02, 2005 at 16:46 UTC ( [id://427320]=note: print w/replies, xml ) | Need Help?? |
The problem is that ok() is tied to the Test::Builder testing
and reporting harness and LectroTest uses a different underlying
harness because of all the trials it does. (Maybe I should
investigate integration?)
Anyway, if you want to use Test::Builder-based modules for their testing features and not for their harness features (which is the case when you are using them inside of LectroTest properties), you can (hackishly) redefine Test::Builder's ok() method to simply return the result status without doing anything else. Using Test::More for the example:
Testing it out:
I hope that this helps. Cheers, Tom Moertel : Blog / Talks / CPAN / LectroTest / PXSL / Coffee / Movie Rating Decoder
In Section
Seekers of Perl Wisdom
|
|