Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Skip test if there is no working spell checker #2

Merged
merged 1 commit into from

2 participants

Randy Stauner Caleb Cushing
Randy Stauner

Test::Spelling does this under the hood
which causes confusing behavior when Test::Tester doesn't know.

This fixes test failures like this one:
http://www.cpantesters.org/cpan/report/4a36b5f8-ffee-11e0-a9af-445633b12857

Randy Stauner rwstauner Skip the test if there is no working spellchecker
Test::Spelling does this under the hood
which causes confusing behavior when Test::Tester doesn't know.
7ea4d76
Caleb Cushing xenoterracide merged commit b6e44a9 into from
Caleb Cushing

would this be at all required in the generated pod-spell.t? or will that do fine on it's own.

Randy Stauner

No, the actual call to all_pod_files_ok does that check (according to the docs),
it just does it too late when wrapped in Test::Tester.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 26, 2011
  1. Randy Stauner

    Skip the test if there is no working spellchecker

    rwstauner authored
    Test::Spelling does this under the hood
    which causes confusing behavior when Test::Tester doesn't know.
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 0 deletions.
  1. +3 −0  t/checked.t
3  t/checked.t
View
@@ -8,6 +8,9 @@ use Dist::Zilla::Tester;
use Path::Class;
use Cwd ();
+plan skip_all => 'No working spellchecker found'
+ unless Test::Spelling::has_working_spellchecker();
+
# lib/ and bin/
spell_check_dist( foo => [file(qw(bin foo)) => {ok => 0}], file(qw(lib Foo.pm)) );
# just lib/
Something went wrong with that request. Please try again.