File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,10 @@ my %config = (
178
178
' Test::More' => 0,
179
179
' File::chdir' => 0,
180
180
},
181
+ test_requires => {
182
+ ' File::chdir' => 0,
183
+ ' Test::Differences' => 0,
184
+ },
181
185
requires => {
182
186
' perl' => ' 5.008' ,
183
187
' File::Slurp' => 0,
Original file line number Diff line number Diff line change @@ -43,12 +43,22 @@ BEGIN
43
43
44
44
}
45
45
46
+ use Test::More;
47
+
48
+ if (eval { require Test::Differences; 1 })
49
+ {
50
+ plan(tests => 1 + @tests );
51
+ }
52
+ else
53
+ {
54
+ plan(skip_all => ' Test::Differences not installed' );
55
+ }
56
+
57
+ use_ok(' Test::Differences' );
58
+
46
59
# uncomment to debug a single test case
47
60
# @tests = grep { $_->[0] =~ m/199/ } @tests;
48
61
49
- use Test::More tests => scalar @tests ;
50
- use Test::Differences;
51
-
52
62
use CSS::Sass;
53
63
54
64
sub read_file
You can’t perform that action at this time.
0 commit comments