Thread Testprobleme: Bad plan (7 answers)
Opened by Kuerbis at 2013-09-02 17:24

Kuerbis
 2013-09-02 17:24
#169865 #169865
User since
2011-03-20
920 articles
BenutzerIn
[default_avatar]
Hallo!

Warum sagt der Test-Report für den Test t/00-load.t: "Bad plan. You planned 1 tests but ran 0." trotz des use_ok testes?

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
#t/00-load.t:
use Test::More tests => 1;


BEGIN {
    use_ok( 'Term::Choose::Win32' ) || print "Bail out!\n";
}

diag( "Testing Term::Choose::Win32 $Term::Choose::Win32::VERSION, Perl $], $^X" );


Quote
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
t/00-load.t .. # Testing Term::Choose::Win32 0.004, Perl 5.018001, C:\strawberry\perl\bin\perl.exe
t/00-load.t .. Failed 1/1 subtests
t/pod.t ...... ok

Test Summary Report
-------------------
t/00-load.t (Wstat: 0 Tests: 0 Failed: 0)
Parse errors: Bad plan. You planned 1 tests but ran 0.
Files=2, Tests=1, 1 wallclock secs ( 0.07 usr + 0.04 sys = 0.11 CPU)
Result: FAIL
Failed 1/2 test programs. 0/1 subtests failed.
dmake: Error code 255, while making 'test_dynamic'

View full thread Testprobleme: Bad plan