3 # ## Bioperl Test Harness Script for Modules
7 eval { require Test
; };
14 plan tests => $NTESTS;
18 foreach ( $Test::ntest..$NTESTS ) {
19 skip('Unable to run Phrap tests, exe may not be installed',1);
23 use Bio::Tools::Run::Phrap;
29 my $input = Bio::Root::IO->catfile("t","data","Phrap.fa");
30 my @params = (arguments=>'-penalty -3 -minmatch 15');
32 my $factory = Bio::Tools::Run::Phrap->new(@params);
33 ok $factory->isa('Bio::Tools::Run::Phrap');
34 ok $factory->arguments, '-penalty -3 -minmatch 15';
36 my $phrap_present = $factory->executable();
38 unless ($phrap_present) {
39 warn("Phrap program not found. Skipping tests $Test::ntest to $NTESTS.\n");
43 my $assembly = $factory->run($input);
45 foreach my $contig($assembly->all_contigs){
46 my $collection = $contig->get_features_collection;
47 my @sf = $collection->get_all_features;