Skip to content

Commit

Permalink
Added t/version
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Mar 8, 2024
1 parent dc1d9b9 commit 97da85c
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 22 deletions.
1 change: 1 addition & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ t/strict.t
t/unused.t
t/used.t
t/vars.t
t/version.t
1 change: 1 addition & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ WriteMakefile(
BUILD_REQUIRES => {
}, TEST_REQUIRES => {
'Test::Most' => 0,
'Test::Needs' => 0,
'Test::NoWarnings' => 0,
# 'Test::Kwalitee' => 0,
}, PREREQ_PM => {
Expand Down
2 changes: 1 addition & 1 deletion lib/Locale/CA.pm
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ Based on L<Locale::US> - Copyright (c) 2002 - C<< $present >> Terrence Brannon.
=head1 LICENSE AND COPYRIGHT
Copyright 2012-2023 Nigel Horne.
Copyright 2012-2024 Nigel Horne.
This program is released under the following licence: GPL2
Expand Down
16 changes: 5 additions & 11 deletions t/eof.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,14 @@

use strict;
use warnings;
use Test::Needs 'Test::EOF';
use Test::Most;

BEGIN {
if($ENV{AUTHOR_TESTING}) {
eval {
require Test::EOF;
};
if($@) {
plan(skip_all => 'Test::EOF not installed');
} else {
import Test::EOF;
all_perl_files_ok({ minimum_newlines => 1, maximum_newlines => 4 });
done_testing();
}
if($ENV{'AUTHOR_TESTING'}) {
Test::EOF->import();
all_perl_files_ok({ minimum_newlines => 1, maximum_newlines => 4 });
done_testing();
} else {
plan(skip_all => 'Author tests not required for installation');
}
Expand Down
14 changes: 4 additions & 10 deletions t/eol.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@

use strict;
use warnings;
use Test::Needs 'Test::EOL';
use Test::Most;

BEGIN {
if($ENV{AUTHOR_TESTING}) {
eval {
require Test::EOL;
};
if($@) {
plan(skip_all => 'Test::EOL not installed');
} else {
import Test::EOL;
all_perl_files_ok({ trailing_whitespace => 1 });
}
if($ENV{'AUTHOR_TESTING'}) {
Test::EOL->import();
all_perl_files_ok({ trailing_whitespace => 1 });
} else {
plan(skip_all => 'Author tests not required for installation');
}
Expand Down
17 changes: 17 additions & 0 deletions t/version.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env perl

use strict;
use warnings;
use Test::Needs 'Test::Version';
use Test::Most;

BEGIN {
if($ENV{'AUTHOR_TESTING'}) {
Test::Version->import();
version_all_ok();
done_testing();
} else {
plan(skip_all => 'Author tests not required for installation');
}
}

0 comments on commit 97da85c

Please sign in to comment.