diff --git a/Changes b/Changes index ad3be2d..2da6672 100644 --- a/Changes +++ b/Changes @@ -3,6 +3,7 @@ Revision history for Grammar-Improver - Use the LanguageTool API to rewrite text 0.02 Use gtar on OS/X Fix typo RT#158361 (SREZIC) + Use Test::Warnings 0.01 Tue Jan 7 14:40:38 EST 2025 First draft diff --git a/MANIFEST b/MANIFEST index 1514192..bfe1c09 100644 --- a/MANIFEST +++ b/MANIFEST @@ -14,3 +14,4 @@ t/eof.t t/eol.t t/fixme.t t/manifest.t +t/pod-coverage.t diff --git a/Makefile.PL b/Makefile.PL index b8511b8..1df7851 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -42,6 +42,7 @@ WriteMakefile( 'Test::Most' => 0, 'Test::Needs' => 0, 'Test::RequiresInternet' => 0, + 'Test::Warnings' => 0 }, dist => $dist, clean => { FILES => 'Grammar-Improver-*', diff --git a/t/30-basics.t b/t/30-basics.t index 53433ae..b92866d 100644 --- a/t/30-basics.t +++ b/t/30-basics.t @@ -5,10 +5,11 @@ use warnings; use Test::Most; use Test::RequiresInternet ('api.languagetool.org' => 'https'); +use Test::Warnings; BEGIN { plan(skip_all => 'NO_NETWORK_TESTING set') if $ENV{'NO_NETWORK_TESTING'}; - plan(tests => 5); + plan(tests => 6); use_ok('Grammar::Improver') } diff --git a/t/pod-coverage.t b/t/pod-coverage.t new file mode 100644 index 0000000..aa6ed6f --- /dev/null +++ b/t/pod-coverage.t @@ -0,0 +1,10 @@ +use strict; +use warnings; + +use Test::DescribeMe qw(author); +use Test::Needs { 'Test::Pod::Coverage' => '1.08', 'Pod::Coverage' => 0.18 }; + +Test::Pod::Coverage->import(); +Pod::Coverage->import(); + +all_pod_coverage_ok();