in reply to Failing Tests in MozRepl

Hi all. It seems I am having the same issue. Firefox 30, Mac OSX 10.9.3, MozRepl 1.1.2. I have to --force MozRepl and MozRepl::RemoteObject MozRepl module fails with
Test Summary Report ------------------- t/10-plugin-repl-enter.t (Wstat: 512 Tests: 3 Failed: 2) Failed tests: 2-3 Non-zero exit status: 2 t/16-plugin-repl-home.t (Wstat: 256 Tests: 2 Failed: 1) Failed test: 2 Non-zero exit status: 1 t/18-plugin-repl-util-help_url_for.t (Wstat: 768 Tests: 4 Failed: 3) Failed tests: 2-4 Non-zero exit status: 3 t/19-plugin-repl-util-doc_for.t (Wstat: 768 Tests: 7 Failed: 3) Failed tests: 2-3, 5 Non-zero exit status: 3 t/20-plugin-json.t (Wstat: 256 Tests: 2 Failed: 1) Failed test: 2 Non-zero exit status: 1 Files=14, Tests=58, 2 wallclock secs ( 0.08 usr 0.04 sys + 2.16 cus +r 0.22 csys = 2.50 CPU) Result: FAIL Failed 5/14 test programs. 10/58 subtests failed. make: *** [test_dynamic] Error 255
and RemoteObject failures:
Test Summary Report ------------------- t/01-callback.t (Wstat: 1024 Tests: 15 Failed: 4) Failed tests: 11-14 Non-zero exit status: 4 t/01-expr.t (Wstat: 256 Tests: 9 Failed: 1) Failed test: 2 Non-zero exit status: 1 Files=34, Tests=186, 85 wallclock secs ( 0.15 usr 0.06 sys + 17.89 cu +sr 1.05 csys = 19.15 CPU) Result: FAIL Failed 2/34 test programs. 5/186 subtests failed. make: *** [test_dynamic] Error 255
and then WWW::Mechanize::Firefox fails as well, even after the above 2 are forced:
Test Summary Report ------------------- t/49-mech-nav.t (Wstat: 5632 Tests: 0 Failed: 0) Non-zero exit status: 22 Parse errors: Bad plan. You planned 3 tests but ran 0. t/50-tick.t (Wstat: 4608 Tests: 19 Failed: 18) Failed tests: 2-19 Non-zero exit status: 18 t/51-click_button.t (Wstat: 5632 Tests: 0 Failed: 0) Non-zero exit status: 22 Parse errors: Bad plan. You planned 22 tests but ran 0. t/60-mech-custom-headers.t (Wstat: 5632 Tests: 5 Failed: 1) Failed test: 5 Non-zero exit status: 22 Parse errors: Bad plan. You planned 21 tests but ran 5. t/70-download-url.t (Wstat: 5632 Tests: 2 Failed: 0) Non-zero exit status: 22 Parse errors: Bad plan. You planned 5 tests but ran 2. t/70-real-status.t (Wstat: 256 Tests: 11 Failed: 1) Failed test: 11 Non-zero exit status: 1 Files=86, Tests=807, 435 wallclock secs ( 0.49 usr 0.18 sys + 55.53 c +usr 3.45 csys = 59.65 CPU) Result: FAIL Failed 6/86 test programs. 20/807 subtests failed.
Not sure I'm confident enough to find and modify all the tests necessary to make them pass. Should I force W::M::F as well? much thanks in advance.

Replies are listed 'Best First'.
Re^2: Failing Tests in MozRepl
by jimhallsun (Sexton) on Nov 30, 2014 at 14:59 UTC

    I seem to be getting the same errors on Solaris. And funny - I want to use W::M::F as well *and* don't feel optimistic about forcing this. Code hasn't been touched since 2007.

    Actually to make the test pass in 20-plugin-json.t I just added double quotes in this line (my diffs):

    diff 20-plugin-json.t ../../MozRepl-0.06-882RqE/t/20-plugin-json.t 17c17 < is($repl->json({ source => MozRepl::Util->javascript_value({a => + 1, b => 2})}), q|"{"a":1,"b":2}"|); --- > is($repl->json({ source => MozRepl::Util->javascript_value({a => + 1, b => 2})}), q|{"a":1,"b":2}|);

    But I have no idea if this makes sense. This more 'it hurts when I do that - so I am not doing that!'

      MozRepl has been failing its tests for a long time already. I would force the installation.