- xt/author/82_optional_modules.t shouldn't be trying to use Readonly::XS (#1092921) - Run the author tests using "Build test" rather than "Build authortest" because the latter ends up deleting META.yml and that causes the kwalitee test to failepel9
parent
5f4aead861
commit
dd1a26eb4a
@ -0,0 +1,22 @@
|
|||||||
|
--- xt/author/82_optional_modules.t
|
||||||
|
+++ xt/author/82_optional_modules.t
|
||||||
|
@@ -11,8 +11,6 @@
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
|
||||||
|
-use Readonly; # So we don't barf when we hit Readonly::XS below.
|
||||||
|
-
|
||||||
|
use lib 'inc';
|
||||||
|
use Perl::Critic::BuildUtilities qw< recommended_module_versions >;
|
||||||
|
|
||||||
|
@@ -37,7 +35,10 @@
|
||||||
|
plan tests => scalar keys %module_versions;
|
||||||
|
|
||||||
|
foreach my $module (sort keys %module_versions) {
|
||||||
|
+ SKIP: {
|
||||||
|
+ skip 'Readonly::XS must only be used from Readonly itself', 1 if $module eq 'Readonly::XS';
|
||||||
|
use_ok( $module, $module_versions{$module} );
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
# Local Variables:
|
Loading…
Reference in new issue