in reply to Issue while installing my module from my local distribution.

Have you run the failing test alone? What is the output?

Have you looked at  \.cpanm\build.log as the error message suggests?

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

    yes Corion. i have posted my build.log result in the question.

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

        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?

        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

      One thing i could see in my code is

      sub import{ return method; #when i say this there is problem in installation. but +when i say return "method"; #installation going fine but my code is not working. }

        Do you know what sub import is supposed to return?

        Do you know the difference between return method; and return "method"; ?

        Is sub method { ... } defined in your module?