[Bioperl-l] Test related Suggestions

Sendu Bala bix at sendu.me.uk
Thu Jul 5 15:56:29 UTC 2007


Sendu Bala wrote:
> Sendu Bala wrote:
>> Nathan S. Haigh wrote:
>>> Thinking about this a little more, I think it would be a good idea to 
>>> include Test::Exception in t/lib.
>> Agree. I'll see if I can have it auto-loaded by BioperlTest.pm.
> 
> I've now done that: BioperlTest loads Test::Exception, from the copy in 
> t/lib if necessary.
> 
> So, in BioperlTest-using scripts you now have access to the methods 
> dies_ok, lives_ok, throws_ok and lives_and.

And I've also now added in support for Test::Warn, giving you 
warning_is, warnings_are, warning_like and warnings_like.

I've updated the HOWTO as well:
http://www.bioperl.org/wiki/HOWTO:Writing_BioPerl_Tests

You can see these things in action in t/seq_quality.t



More information about the Bioperl-l mailing list