in reply to Re^2: Issue while installing my module from my local distribution.
in thread Issue while installing my module from my local distribution.

Maybe now is the time to run the failing test in isolation, so you can see why it fails.

  • Comment on Re^3: Issue while installing my module from my local distribution.

Replies are listed 'Best First'.
Re^4: Issue while installing my module from my local distribution.
by kiranp (Novice) on Sep 05, 2014 at 15:26 UTC

    yes..Corion method is defined in my package, when i forcefully installed, code is working properly but i am not getting why it is failing in test

    also i didn't get what is mean by run in isolation?

      A test file is a Perl program. What happens when you run that failing Perl program?

Re^4: Issue while installing my module from my local distribution.
by kiranp (Novice) on Sep 06, 2014 at 05:09 UTC

    I have got following result, when i tried to do it manually

    after installation it is working fine, but the problem is it is failing in testing

    C:\Windows\System32>cd C:\Users\KIRAN\Documents\Warn_re-Recompile C:\Users\KIRAN\Documents\Warn_re-Recompile>perl Makefile.PL Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for Warn_re::Recompile Writing MYMETA.yml and MYMETA.json C:\Users\KIRAN\Documents\Warn_re-Recompile>dmake cp lib/Warn_re/Recompile.pm blib\lib\Warn_re\Recompile.pm C:\Users\KIRAN\Documents\Warn_re-Recompile>dmake test D:\Dwimperl\perl\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Harne +ss" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', + 'blib\arch')" t/*.t t/00-load.t ....... 1/? # Testing Warn_re::Recompile 0.01, Perl 5.0140 +02, D:\Dwi mperl\perl\bin\perl.exe # Looks like your test exited with 25 just after 1. t/00-load.t ....... Dubious, test returned 25 (wstat 6400, 0x1900) All 1 subtests passed t/boilerplate.t ... ok t/manifest.t ...... skipped: Author tests not required for installatio +n t/pod-coverage.t .. ok t/pod.t ........... ok Test Summary Report ------------------- t/00-load.t (Wstat: 6400 Tests: 1 Failed: 0) Non-zero exit status: 25 t/boilerplate.t (Wstat: 0 Tests: 3 Failed: 0) TODO passed: 3 Files=5, Tests=6, 2 wallclock secs ( 0.23 usr + 0.16 sys = 0.39 CPU +) Result: FAIL Failed 1/5 test programs. 0/6 subtests failed. dmake: Error code 255, while making 'test_dynamic' C:\Users\KIRAN\Documents\Warn_re-Recompile>dmake install Installing D:\Dwimperl\perl\site\lib\Warn_re\Recompile.pm Appending installation info to D:\Dwimperl\perl\lib/perllocal.pod

      This is not "running the test in isolation".

      I meant that you should run

      perl -Ilib -w t\00-load.t

      ... and watch the output. If that (most likely trivial) test fails, the module will not be usable even if you install it.