Skip to content

Commit

Permalink
Add Perltidy test in xt (related to #319)
Browse files Browse the repository at this point in the history
- Add cpanfile, specifying dependencies for running the xt tests
  (authors tests, not installation tests)
  • Loading branch information
ldidry committed May 24, 2018
1 parent b11d165 commit 34f9a94
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cpanfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
on 'develop' => sub {
requires 'Test::Fixme';
requires 'Test::PerlTidy';
};
2 changes: 1 addition & 1 deletion doc/dot.perltidyrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-cti=0 # No extra indentation for closing brackets
-i=4 # Indent level is 4 cols
-ci=4 # Continuation indent is 4 cols
-l=78 # Max line witdh is 78 cols
-l=78 # Max line width is 78 cols
-nolc # Don't outdent long comments (* -olc)
-nolq # Don't outdent long quoted strings
-nsbl # No opening sub brace on new line (* -sbl)
Expand Down
10 changes: 10 additions & 0 deletions xt/perltidy.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use strict;
use warnings;

use Test::PerlTidy;
use FindBin qw($Bin);

run_tests(
path => "$Bin/../src/",
perltidyrc => "$Bin/../doc/dot.perltidyrc"
);

0 comments on commit 34f9a94

Please sign in to comment.