Skip to content

Commit

Permalink
Merge pull request #570 from kappa/rlib_to_test_lib
Browse files Browse the repository at this point in the history
Use Test::Lib in tests
Thanks @kappa for implementing.
  • Loading branch information
shawnlaffan committed Oct 8, 2015
2 parents 95850ba + 6001c9a commit ad52cce
Show file tree
Hide file tree
Showing 62 changed files with 57 additions and 68 deletions.
3 changes: 3 additions & 0 deletions etc/bundles/NoGUI/Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Revision history for Perl module Task::Biodiverse::NoGUI

1.00012 2015-10-06
- Depend on Test::Lib in addition to rlib

1.00011 2015-06-11
- Fix a copy-paste error in the makefile which resulted in neither of
Spreadsheet::ParseXLSX and Spreadsheet::XLSX being installed.
Expand Down
1 change: 1 addition & 0 deletions etc/bundles/NoGUI/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ WriteMakefile(
"Clone" => "0.35",
"Regexp::Common" => "0",
"rlib" => "0",
"Test::Lib" => "0",
"parent" => "0",
"Readonly" => "0",
"URI::Escape::XS" => "0",
Expand Down
2 changes: 1 addition & 1 deletion etc/bundles/NoGUI/lib/Task/Biodiverse/NoGUI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package Task::Biodiverse::NoGUI;
use strict;
use warnings;

our $VERSION = '1.00011';
our $VERSION = '1.00012';


1;
Expand Down
2 changes: 1 addition & 1 deletion t/00-load.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use FindBin qw { $Bin };
use File::Spec;
use File::Find;

use rlib;
use Test::Lib;

# need to move GUI modules into their own test file
BEGIN {
Expand Down
2 changes: 1 addition & 1 deletion t/01-csv_guesswork.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;

local $| = 1;

use rlib;
use Test::Lib;

use Test::More;
use Test::Exception;
Expand Down
2 changes: 1 addition & 1 deletion t/10-ElementProperties.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;

local $| = 1;

use rlib;
use Test::Lib;

use Test::More;
use Test::Exception;
Expand Down
2 changes: 1 addition & 1 deletion t/11-BaseData-import-spreadsheet.t
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use English qw { -no_match_vars };
use Data::Dumper;
use Path::Class;

use rlib;
use Test::Lib;

use Data::Section::Simple qw(
get_data_section
Expand Down
2 changes: 1 addition & 1 deletion t/11-BaseData.t
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use English qw { -no_match_vars };
use Data::Dumper;
use Path::Class;

use rlib;
use Test::Lib;

use Data::Section::Simple qw(
get_data_section
Expand Down
2 changes: 1 addition & 1 deletion t/11-BaseData_clone_save_reload.t
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use English qw { -no_match_vars };

use Scalar::Util qw /blessed/;

use rlib;
use Test::Lib;

local $| = 1;

Expand Down
2 changes: 1 addition & 1 deletion t/11-BaseData_exclusions.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use strict;
use warnings;
use English qw { -no_match_vars };

use rlib;
use Test::Lib;

use Data::Section::Simple qw(
get_data_section
Expand Down
2 changes: 1 addition & 1 deletion t/11-BaseData_reorder_axes.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use strict;
use warnings;
use English qw { -no_match_vars };

use rlib;
use Test::Lib;

local $| = 1;

Expand Down
2 changes: 1 addition & 1 deletion t/12-BaseStruct-export.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use English qw { -no_match_vars };
use Carp;
use Scalar::Util qw /blessed/;

use rlib;
use Test::Lib;

use Data::Section::Simple qw(
get_data_section
Expand Down
2 changes: 1 addition & 1 deletion t/12-BaseStruct.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use 5.010;

use English qw { -no_match_vars };

use rlib;
use Test::Lib;

use Data::Section::Simple qw(
get_data_section
Expand Down
2 changes: 1 addition & 1 deletion t/13-Tree.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use warnings;
use Carp;

use FindBin qw/$Bin/;
use rlib;
use Test::Lib;
use List::Util qw /first sum/;

use Test::More;
Expand Down
2 changes: 1 addition & 1 deletion t/20-Biodiverse_Statistics-descr.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use warnings;
use Test::More tests => 55;

use lib 't/lib';
use rlib;
use Test::Lib;
use Utils qw/is_between compare_hash_by_ranges/;

use Benchmark;
Expand Down
2 changes: 1 addition & 1 deletion t/20-Biodiverse_Statistics.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use English qw { -no_match_vars };

use FindBin qw/$Bin/;

use rlib;
use Test::Lib;

use Test::More;

Expand Down
2 changes: 1 addition & 1 deletion t/21-ReadNexus.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use English qw { -no_match_vars };
use Carp;

use FindBin qw/$Bin/;
use rlib;
use Test::Lib;

#use Test::More tests => 35;
use Test::More;
Expand Down
2 changes: 1 addition & 1 deletion t/22-SpatialConditions2.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use English qw{
-no_match_vars
};

use rlib;
use Test::Lib;
use Test::More;

use Biodiverse::BaseData;
Expand Down
2 changes: 1 addition & 1 deletion t/22-SpatialConditions3.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use English qw{
-no_match_vars
};

use rlib;
use Test::Lib;
use Test::More;

use Biodiverse::BaseData;
Expand Down
2 changes: 1 addition & 1 deletion t/22-SpatialConditions4.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use English qw{
-no_match_vars
};

use rlib;
use Test::Lib;
use Test::More;

use Biodiverse::BaseData;
Expand Down
2 changes: 1 addition & 1 deletion t/22-SpatialConditions5.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use English qw{
-no_match_vars
};

use rlib;
use Test::Lib;
use Test::More;

use Biodiverse::BaseData;
Expand Down
2 changes: 1 addition & 1 deletion t/22-SpatialConditions_block_select.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use English qw { -no_match_vars };

use FindBin qw/$Bin/;

use rlib;
use Test::Lib;
use Scalar::Util qw /looks_like_number/;
use Data::Dumper qw /Dumper/;
#use Test::More tests => 255;
Expand Down
2 changes: 1 addition & 1 deletion t/22-SpatialConditions_main.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use English qw { -no_match_vars };

use FindBin qw/$Bin/;

use rlib;
use Test::Lib;
use Scalar::Util qw /looks_like_number/;
use Data::Dumper qw /Dumper/;
#use Test::More tests => 255;
Expand Down
2 changes: 1 addition & 1 deletion t/22-SpatialConditions_metadata.t
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use English qw{

use Scalar::Util qw /reftype/;

use rlib;
use Test::Lib;
use Test::More;

use Biodiverse::BaseData;
Expand Down
2 changes: 1 addition & 1 deletion t/22-SpatialConditions_rectangle.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use English qw { -no_match_vars };

use FindBin qw/$Bin/;

use rlib;
use Test::Lib;
use Scalar::Util qw /looks_like_number/;
use Data::Dumper qw /Dumper/;
#use Test::More tests => 255;
Expand Down
2 changes: 1 addition & 1 deletion t/22-SpatialConditions_side_in_line.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use English qw { -no_match_vars };

use FindBin qw/$Bin/;

use rlib;
use Test::Lib;
use Scalar::Util qw /looks_like_number/;
use Data::Dumper qw /Dumper/;
#use Test::More tests => 255;
Expand Down
2 changes: 1 addition & 1 deletion t/22-SpatialConditions_side_left.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use English qw { -no_match_vars };

use FindBin qw/$Bin/;

use rlib;
use Test::Lib;
use Scalar::Util qw /looks_like_number/;
use Data::Dumper qw /Dumper/;
#use Test::More tests => 255;
Expand Down
2 changes: 1 addition & 1 deletion t/22-SpatialConditions_side_right.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use English qw { -no_match_vars };

use FindBin qw/$Bin/;

use rlib;
use Test::Lib;
use Scalar::Util qw /looks_like_number/;
use Data::Dumper qw /Dumper/;
#use Test::More tests => 255;
Expand Down
2 changes: 1 addition & 1 deletion t/23-Indices.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;
use English qw { -no_match_vars };
use Carp;

use rlib;
use Test::Lib;

use Test::More;
use Test::Exception;
Expand Down
2 changes: 1 addition & 1 deletion t/24-Indices_element-properties-group.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;

local $| = 1;

use rlib;
use Test::Lib;
use Test::Most;

use Biodiverse::TestHelpers qw{
Expand Down
2 changes: 1 addition & 1 deletion t/24-Indices_element-properties-label.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;

local $| = 1;

use rlib;
use Test::Lib;
use Test::Most;

use Biodiverse::TestHelpers qw{
Expand Down
2 changes: 1 addition & 1 deletion t/24-Indices_element-properties-label_gistar_range_wtd.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;

local $| = 1;

use rlib;
use Test::Lib;
use Test::More;

use Biodiverse::TestHelpers qw{
Expand Down
2 changes: 1 addition & 1 deletion t/24-Indices_endemism.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;

local $| = 1;

use rlib;
use Test::Lib;
use Test::Most;

use Biodiverse::TestHelpers qw{
Expand Down
2 changes: 1 addition & 1 deletion t/24-Indices_hierarchical-labels.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;

local $| = 1;

use rlib;
use Test::Lib;
use Test::Most;

use Biodiverse::TestHelpers qw{
Expand Down
2 changes: 1 addition & 1 deletion t/24-Indices_inter-event-interval-statistics.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;

local $| = 1;

use rlib;
use Test::Lib;
use Test::Most;

use Biodiverse::TestHelpers qw{
Expand Down
2 changes: 1 addition & 1 deletion t/24-Indices_lists-and-counts.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;

local $| = 1;

use rlib;
use Test::Lib;
use Test::Most;

use Biodiverse::TestHelpers qw{
Expand Down
2 changes: 1 addition & 1 deletion t/24-Indices_lists_and_counts_rank_relative_abundances.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;

local $| = 1;

use rlib;
use Test::Lib;
use Test::Most;

use Biodiverse::TestHelpers qw{
Expand Down
2 changes: 1 addition & 1 deletion t/24-Indices_matrix.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;

local $| = 1;

use rlib;
use Test::Lib;
use Test::Most;

use Biodiverse::TestHelpers qw{
Expand Down
2 changes: 1 addition & 1 deletion t/24-Indices_numeric-labels.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;

local $| = 1;

use rlib;
use Test::Lib;
use Test::Most;

use Biodiverse::TestHelpers qw{
Expand Down
2 changes: 1 addition & 1 deletion t/24-Indices_phylocom.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;

local $| = 1;

use rlib;
use Test::Lib;
use Test::Most;

use Biodiverse::TestHelpers qw{
Expand Down
2 changes: 1 addition & 1 deletion t/24-Indices_phylocom_nri_nti.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;

local $| = 1;

use rlib;
use Test::Lib;
use Test::More;
use Biodiverse::Config;

Expand Down
2 changes: 1 addition & 1 deletion t/24-Indices_phylogenetic-pd-endemism.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;

local $| = 1;

use rlib;
use Test::Lib;
use Test::Most;

use Biodiverse::TestHelpers qw{
Expand Down
2 changes: 1 addition & 1 deletion t/24-Indices_phylogenetic.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ local $ENV{BIODIVERSE_EXTENSIONS_IGNORE} = 1;

my $generate_result_sets = 0;

use rlib;
use Test::Lib;
use Test::Most;
use List::Util qw /sum/;

Expand Down
2 changes: 1 addition & 1 deletion t/24-Indices_phylogenetic_relative.t
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ BEGIN {
#$ENV{BIODIVERSE_EXTENSIONS_IGNORE} = 0;
}

use rlib;
use Test::Lib;
use Test::More;
use Biodiverse::Config;
use List::Util qw /sum/;
Expand Down
Loading

0 comments on commit ad52cce

Please sign in to comment.