Coder Social home page Coder Social logo

perl-test-dependencies's People

Contributors

ehuelsmann avatar kentfredric avatar knowledgejunkie avatar

Watchers

 avatar  avatar

perl-test-dependencies's Issues

Broken cpantesters

Test::Dependencies 0.20 fails all but one tester.

Test log from one of the testers:


#   Failed test 'use Test::Dependencies::Heavy;'
#   at t/00-load-basic.t line 7.
#     Tried to use 'Test::Dependencies::Heavy'.
#     Error:  Attempt to reload Test/Dependencies/Heavy.pm aborted.
# Compilation failed in require at t/00-load-basic.t line 7.
# BEGIN failed--compilation aborted at t/00-load-basic.t line 7.
# Looks like you failed 1 test of 3.
t/00-load-basic.t ............ 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests 
t/01-load-with-exclude.t ..... ok
Undefined subroutine &Test::Dependencies::get_modules_used_in_file called at /tmp/loop_over_bdir-1626-03HbfT/Test-Dependencies-0.20-0/blib/lib/Test/Dependencies.pm line 136.
# Looks like your test exited with 255 just after 1.
t/02-dependencies-default.t .. 
Dubious, test returned 255 (wstat 65280, 0xff00)
All 1 subtests passed 
Plan already set, no_plan() is a no-op, this will change to a hard failure in the future. at /home/sand/src/perl/repoperls/installed-perls/perl/v5.20.2/f7bf/lib/site_perl/5.20.2/Test/Builder.pm line 487.
t/03-empty.t ................. ok
t/04-dependencies-light.t .... ok
Undefined subroutine &Test::Dependencies::get_modules_used_in_file called at /tmp/loop_over_bdir-1626-03HbfT/Test-Dependencies-0.20-0/blib/lib/Test/Dependencies.pm line 136.
# Looks like your test exited with 255 just after 1.
t/05-dependencies-heavy.t .... 
Dubious, test returned 255 (wstat 65280, 0xff00)
All 1 subtests passed 

#   Failed test 'Pod coverage on Test::Dependencies::Heavy'
#   at /home/sand/src/perl/repoperls/installed-perls/perl/v5.20.2/f7bf/lib/site_perl/5.20.2/Test/Pod/Coverage.pm line 133.
# Test::Dependencies::Heavy: requiring 'Test::Dependencies::Heavy' failed
# Looks like you failed 1 test of 3.
t/pod-coverage.t ............. 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests 
t/pod.t ...................... ok

Dependencies.pm's $tb->no_plan() invocation "leaks" into test output

This demonstrates it:

$ prove -l
t/00-load-basic.t ............ ok   
t/01-load-with-exclude.t ..... ok   
t/02-dependencies-default.t .. ok    
t/03-empty.t ................. Plan already set, no_plan() is a no-op
t/03-empty.t ................. ok   
t/04-dependencies-light.t .... ok    
t/05-dependencies-heavy.t .... ok    
t/boilerplate.t .............. ok   
t/pod-coverage.t ............. ok   
t/pod.t ...................... ok   
All tests successful.

There's also a warning about this becoming a hard failure in the (near?) future.

More "plan" errors

Ugh.

_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load-basic.t ............ 1/? The plan was already output at /usr/lib64/perl5/5.24.0/Test/Builder.pm line 2510.
t/00-load-basic.t ............ All 3 subtests passed 

Transposing these use_ok lines with require_ok lines seems to be sufficient, that way it doesn't try to call ->import ( which in turn calls plan ).

Because this:

use Test::More 0.98; 
use lib q[lib]; 
use_ok(q[Test::Dependencies]);
done_testing;  # <-- calls plan .... 

This might be a bug in Test::More though and I'll be following that up there. But you can still avoid this problem entirely with require_ instead of use_

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.