Skip to content

Commit

Permalink
Document how to run a test without a module
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel Horne committed Feb 15, 2022
1 parent 6a1db37 commit d5fee29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/fixme.t
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ if($ENV{AUTHOR_TESTING}) {

eval 'use Devel::FIXME';
if($@) {
# AUTHOR_TESTING=1 perl -MTest::Without::Module=Devel::FIXME -w -Iblib/lib t/fixme.t
diag('Devel::FIXME needed to test for FIXMEs');
done_testing(1);
} else {
Expand All @@ -25,7 +26,7 @@ if($ENV{AUTHOR_TESTING}) {
use_ok('CGI::Info');

# ok($messages[0] !~ /lib\/CGI\/Info.pm/);
ok(scalar(@messages) == 0);
cmp_ok(scalar(@messages), '==', 0, 'No FIXMEs found');

done_testing(3);
}
Expand Down

0 comments on commit d5fee29

Please sign in to comment.