Subject: | The tests fail with WWW::Mechanize v1.58 |
I have ubuntu 10.04 as my work computer. On that computer WWW::Mechanize version is 1.58. With this version, the App::Nopaste does not pass tests:
bessarabov@b-yanote:~/git/app-nopaste$ prove -Ilib
t/000-load.t .......... ok
t/001-subclass_cmd.t .. ok
t/002-encoding.t ...... 1/? There is no form numbered 1 at /home/bessarabov/git/app-nopaste/lib/App/Nopaste/Service.pm line 44.
App::Nopaste::Service::MyTest: No form defined at /home/bessarabov/git/app-nopaste/lib/App/Nopaste/Service.pm line 52.
No available App::Nopaste::Service modules found at /home/bessarabov/git/app-nopaste/lib/App/Nopaste/Command.pm line 110.
# Tests were run but no plan was declared and done_testing() was not seen.
t/002-encoding.t ...... Dubious, test returned 255 (wstat 65280, 0xff00)
All 1 subtests passed
Test Summary Report
-------------------
t/002-encoding.t (Wstat: 65280 Tests: 1 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
Files=3, Tests=17, 1 wallclock secs ( 0.02 usr 0.02 sys + 0.42 cusr 0.04 csys = 0.50 CPU)
Result: FAIL
bessarabov@b-yanote:~/git/app-nopaste$
After updating to the latest version of WWW::Mechanize (it is 1.72) the tests pass:
bessarabov@b-yanote:~/git/app-nopaste$ prove -Ilib
t/000-load.t .......... ok
t/001-subclass_cmd.t .. ok
t/002-encoding.t ...... ok
All tests successful.
Files=3, Tests=19, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.46 cusr 0.03 csys = 0.53 CPU)
Result: PASS
bessarabov@b-yanote:~/git/app-nopaste$