[Bioperl-l] test::more template
bix at sendu.me.uk
Fri Oct 20 11:23:38 EDT 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