in reply to Tests were run but no plan was declared and done_testing() was not seen.

Can't help with your problem, except that it all tested and installed fine on my Macbook :-)

PERL_DL_NONLAZY=1 "/Users/nick/perl5/perlbrew/perls/perl-5.16.0/bin/pe +rl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Ha +rness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load.t ....... 1/? # Testing Net::SNTP::Client 0.01, Perl 5.01600 +0, /Users/nick/perl5/perlbrew/perls/perl-5.16.0/bin/perl t/00-load.t ....... ok

You should either have a test plan or declare done_testing in 00-load.t

Remember: Ne dederis in spiritu molere illegitimi!
  • Comment on Re: Tests were run but no plan was declared and done_testing() was not seen.
  • Download Code

Replies are listed 'Best First'.
Re^2: Tests were run but no plan was declared and done_testing() was not seen.
by thanos1983 (Parson) on Jul 10, 2015 at 19:41 UTC

    Hello 1nickt,

    I appreciate your time and effort. Thanks a million for testing the module on MacOS I did not had the ability to do that... :D

    I am glad that is working fine hope you can apply it some where... :D

    Again thank you for your time and effort, spending reviewing my module.

    Seeking for Perl wisdom...on the process of learning...not there...yet!

      You are welcome. Here is the output of your test t/00-load.t when it failed because my network router was rebooting when I ran it:

      [12:48][nick:~/.cpan/build/Net-SNTP-Client-0.01-4Dgp0y]$ perl -T t/00- +load.t ok 1 - use Net::SNTP::Client; # Testing Net::SNTP::Client 0.01, Perl 5.016000, /Users/nick/perl5/per +lbrew/perls/perl-5.16.0/bin/perl ok 2 - Module Hash Input Works ok 3 - Hostname Must be Defined ok 4 - Port Has to be Defined and Integer ok 5 - Got Hash Output not ok 6 - Module Hash Keys are Identical # Failed test 'Module Hash Keys are Identical' # at t/00-load.t line 97. # Structures begin differing at: # $got->[0] = '-hostname' # $expected->[0] = '0.pool.ntp.org' not ok 7 - Exptected Output From the Module Received # Failed test 'Exptected Output From the Module Received' # at t/00-load.t line 99. # Comparing hash keys of $data # Missing: '0.pool.ntp.org', 'RFC4330', 't/00-load.t' # Extra: '-hostname', '-port' ok 8 - Faulty Test Extra Key ok 9 - Correct Output Error Extra Hash Key ok 10 - Faulty Test no Hostname ok 11 - Correct Output Error No Hostname ok 12 - Faulty Test Negative Port Number ok 13 - Correct Output Error for Negative Port Number ok 14 - Faulty Test Out of Range Port Number ok 15 - Correct Output Error Out of Range Port Number 1..15 # Looks like you failed 2 tests of 15.

      Here is the output when I ran it with net connection:

      [12:51][nick:~/.cpan/build/Net-SNTP-Client-0.01-4Dgp0y]$ perl -T t/00- +load.t ok 1 - use Net::SNTP::Client; # Testing Net::SNTP::Client 0.01, Perl 5.016000, /Users/nick/perl5/per +lbrew/perls/perl-5.16.0/bin/perl ok 2 - Module Hash Input Works ok 3 - Hostname Must be Defined ok 4 - Port Has to be Defined and Integer ok 5 - Got Hash Output ok 6 - Module Hash Keys are Identical ok 7 - Exptected Output From the Module Received ok 8 - Faulty Test Extra Key ok 9 - Correct Output Error Extra Hash Key ok 10 - Faulty Test no Hostname ok 11 - Correct Output Error No Hostname ok 12 - Faulty Test Negative Port Number ok 13 - Correct Output Error for Negative Port Number ok 14 - Faulty Test Out of Range Port Number ok 15 - Correct Output Error Out of Range Port Number 1..15
      and
      [12:51][nick:~/.cpan/build/Net-SNTP-Client-0.01-4Dgp0y]$ make test TES +T_VERBOSE=1 PERL_DL_NONLAZY=1 "/Users/nick/perl5/perlbrew/perls/perl-5.16.0/bin/pe +rl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Ha +rness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/00-load.t ....... ok 1 - use Net::SNTP::Client; # Testing Net::SNTP::Client 0.01, Perl 5.016000, /Users/nick/perl5/per +lbrew/perls/perl-5.16.0/bin/perl ok 2 - Module Hash Input Works ok 3 - Hostname Must be Defined ok 4 - Port Has to be Defined and Integer ok 5 - Got Hash Output ok 6 - Module Hash Keys are Identical ok 7 - Exptected Output From the Module Received ok 8 - Faulty Test Extra Key ok 9 - Correct Output Error Extra Hash Key ok 10 - Faulty Test no Hostname ok 11 - Correct Output Error No Hostname ok 12 - Faulty Test Negative Port Number ok 13 - Correct Output Error for Negative Port Number ok 14 - Faulty Test Out of Range Port Number ok 15 - Correct Output Error Out of Range Port Number 1..15 ok t/manifest.t ...... 1..0 # SKIP Author tests not required for installation skipped: Author tests not required for installation t/pod-coverage.t .. 1..0 # SKIP Author tests not required for installation skipped: Author tests not required for installation t/pod.t ........... 1..0 # SKIP Author tests not required for installation skipped: Author tests not required for installation All tests successful. Files=4, Tests=15, 1 wallclock secs ( 0.04 usr 0.01 sys + 0.15 cusr + 0.03 csys = 0.23 CPU) Result: PASS
      Remember: Ne dederis in spiritu molere illegitimi!