houseabsolute / perl-code-tidyall

Engine for tidyall, your all-in-one code tidier and validator
https://metacpan.org/release/Code-TidyAll/
Other
21 stars 31 forks source link

t/Plugin-PodSpell.t fails (if ispell is not installed?) #108

Closed eserte closed 2 years ago

eserte commented 2 years ago

On some of my smokers the test suite fails like this, possibly because ispell is not installed:

    #   Failed test 'state=checked'
    #   at /usr/home/cpansand/.cpan/build/2021112619/Code-TidyAll-0.79-1/t/lib/TestFor/Code/TidyAll/Plugin.pm line 84.
    #   (in TestFor::Code::TidyAll::Plugin::PodSpell->test_main)
    #          got: 'error'
    #     expected: 'checked'

    #   Failed test 'no error'
    #   at /usr/home/cpansand/.cpan/build/2021112619/Code-TidyAll-0.79-1/t/lib/TestFor/Code/TidyAll/Plugin.pm line 85.
    #   (in TestFor::Code::TidyAll::Plugin::PodSpell->test_main)
    #          got: 'error running 'ispell -a': No such file or directory at /usr/home/cpansand/.cpan/build/2021112619/Code-TidyAll-0.79-1/blib/lib/Code/TidyAll/Plugin/PodSpell.pm line 45.'
    #     expected: undef
    # Looks like you failed 2 tests of 3.

#   Failed test 'ok'
#   at /usr/home/cpansand/.cpan/build/2021112619/Code-TidyAll-0.79-1/t/lib/TestFor/Code/TidyAll/Plugin.pm line 96.
#   (in TestFor::Code::TidyAll::Plugin::PodSpell->test_main)

    #   Failed test 'error message'
    #   at /usr/home/cpansand/.cpan/build/2021112619/Code-TidyAll-0.79-1/t/lib/TestFor/Code/TidyAll/Plugin.pm line 93.
    #   (in TestFor::Code::TidyAll::Plugin::PodSpell->test_main)
    #                   'error running 'ispell -a': No such file or directory at /usr/home/cpansand/.cpan/build/2021112619/Code-TidyAll-0.79-1/blib/lib/Code/TidyAll/Plugin/PodSpell.pm line 45.'
    #     doesn't match '(?^:unrecognized words:\nbrowwn\nlazeey)'
    # Looks like you failed 1 test of 2.

#   Failed test 'spelling mistakes'
#   at /usr/home/cpansand/.cpan/build/2021112619/Code-TidyAll-0.79-1/t/lib/TestFor/Code/TidyAll/Plugin.pm line 96.
#   (in TestFor::Code::TidyAll::Plugin::PodSpell->test_main)

    #   Failed test 'error message'
    #   at /usr/home/cpansand/.cpan/build/2021112619/Code-TidyAll-0.79-1/t/lib/TestFor/Code/TidyAll/Plugin.pm line 93.
    #   (in TestFor::Code::TidyAll::Plugin::PodSpell->test_main)
    #                   'error running 'ispell -p /var/tmp/cpansmoker-1023/2021112619/Code-TidyAll-Ku1V/.ispell_english -a': No such file or directory at /usr/home/cpansand/.cpan/build/2021112619/Code-TidyAll-0.79-1/blib/lib/Code/TidyAll/Plugin/PodSpell.pm line 45.'
    #     doesn't match '(?^:unrecognized words:\nlazeey)'
    # Looks like you failed 1 test of 2.

#   Failed test 'spelling mistakes, one in dictionary'
#   at /usr/home/cpansand/.cpan/build/2021112619/Code-TidyAll-0.79-1/t/lib/TestFor/Code/TidyAll/Plugin.pm line 96.
#   (in TestFor::Code::TidyAll::Plugin::PodSpell->test_main)

    #   Failed test 'state=checked'
    #   at /usr/home/cpansand/.cpan/build/2021112619/Code-TidyAll-0.79-1/t/lib/TestFor/Code/TidyAll/Plugin.pm line 84.
    #   (in TestFor::Code::TidyAll::Plugin::PodSpell->test_main)
    #          got: 'error'
    #     expected: 'checked'

    #   Failed test 'no error'
    #   at /usr/home/cpansand/.cpan/build/2021112619/Code-TidyAll-0.79-1/t/lib/TestFor/Code/TidyAll/Plugin.pm line 85.
    #   (in TestFor::Code::TidyAll::Plugin::PodSpell->test_main)
    #          got: 'error running 'ispell -p /var/tmp/cpansmoker-1023/2021112619/Code-TidyAll-Ku1V/.ispell_english -a': No such file or directory at /usr/home/cpansand/.cpan/build/2021112619/Code-TidyAll-0.79-1/blib/lib/Code/TidyAll/Plugin/PodSpell.pm line 45.'
    #     expected: undef
    # Looks like you failed 2 tests of 3.

#   Failed test 'spelling mistakes, all in dictionary'
#   at /usr/home/cpansand/.cpan/build/2021112619/Code-TidyAll-0.79-1/t/lib/TestFor/Code/TidyAll/Plugin.pm line 96.
#   (in TestFor::Code::TidyAll::Plugin::PodSpell->test_main)
# Looks like you failed 4 tests of 4.
t/Plugin-PodSpell.t ............ 
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/4 subtests 
autarch commented 2 years ago

Thanks for the bug report. I'll release a fixed version shortly.