[Bioperl-l] test::more template

Sendu Bala bix at sendu.me.uk
Fri Oct 20 15:23:38 UTC 2006


Nathan Haigh wrote:
> I thought I'd have my first proper try at writing some tests. I was wondering if there is a template test file that I should use/study in order to be
> consistent with other tests.
> 
> Failing that - Is there a good test writing style I should follow in one of the other test files?

I originally based mine on one of Chris's EUtilities tests, but now 
refer to t/ESEfinder.t since it is small and demonstrates all the major 
tricky things you might have to do - skip remote tests if no 
BIOPERLDEBUG, skip remote tests on remote server failure, skip all tests 
under some condition, fall-back to t/lib for Test::More if necessary.

(Though I just spotted an oops in the latter...)



More information about the Bioperl-l mailing list