3 # ## Bioperl Test Harness Script for Modules
6 my $DBEUG = $ENV{'BIOPERLDEBUG'} || 0;
8 eval { require Test
; };
15 plan tests => $NTESTS;
19 foreach ( $Test::ntest..$NTESTS ) {
20 skip('Unable to run Phrap tests, exe may not be installed',1);
24 use Bio::Tools::Run::Phrap;
30 my $input = Bio::Root::IO->catfile("t","data","Phrap.fa");
31 my @params = (-verbose => $DBEUG,
32 arguments=>'-penalty -3 -minmatch 15');
34 my $factory = Bio::Tools::Run::Phrap->new(@params);
35 ok $factory->isa('Bio::Tools::Run::Phrap');
36 ok $factory->arguments, '-penalty -3 -minmatch 15';
38 my $phrap_present = $factory->executable();
40 unless ($phrap_present) {
41 warn("Phrap program not found. Skipping tests $Test::ntest to $NTESTS.\n");
45 my $assembly = $factory->run($input);
47 foreach my $contig($assembly->all_contigs){
48 my $collection = $contig->get_features_collection;
49 my @sf = $collection->get_all_features;
51 ok $sf[1]->start, 601;