Akron / Mojolicious-Plugin-Piwik

Use Piwik in your Mojolicious app
Artistic License 2.0
0 stars 1 forks source link

Test failures (with older Mojolicious?) #2

Closed eserte closed 3 years ago

eserte commented 5 years ago

On my smoker systems I see the following types of test failures:

Can't locate Mojo/Promise.pm in @INC (you may need to install the Mojo::Promise module) (@INC contains: ../lib /home/cpansand/.cpan/build/2018122814/Mojolicious-Plugin-Piwik-0.25-rheDMt/blib/lib /home/cpansand/.cpan/build/2018122814/Mojolicious-Plugin-Piwik-0.25-rheDMt/blib/arch /usr/perl5.20.1Dp/lib/site_perl/5.20.1/amd64-freebsd-ld /usr/perl5.20.1Dp/lib/site_perl/5.20.1 /usr/perl5.20.1Dp/lib/5.20.1/amd64-freebsd-ld /usr/perl5.20.1Dp/lib/5.20.1 .) at /home/cpansand/.cpan/build/2018122814/Mojolicious-Plugin-Piwik-0.25-rheDMt/blib/lib/Mojolicious/Plugin/Piwik.pm line 6, <DATA> line 2231.
BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2018122814/Mojolicious-Plugin-Piwik-0.25-rheDMt/blib/lib/Mojolicious/Plugin/Piwik.pm line 6, <DATA> line 2231.
Compilation failed in require at (eval 273) line 1, <DATA> line 2231.
t/piwik_api-track.t ...... 
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run 
...

or:

#   Failed test 'Track'
#   at t/piwik_api_p.t line 48.
#          got: ''
#     expected: undef

#   Failed test 'API.getPiwikVersion'
#   at t/piwik_api_p.t line 59.
#                   undef
#     doesn't match '(?^:^[\.0-9]+$)'

#   Failed test 'API.getAnswerToLife'
#   at t/piwik_api_p.t line 70.
#          got: undef
#     expected: '42'

#   Failed test 'API.getObject'
#   at t/piwik_api_p.t line 80.
#          got: undef
#     expected: 'error'

#   Failed test 'API.getSum'
#   at t/piwik_api_p.t line 92.
#          got: undef
#     expected: '12'
Not an ARRAY reference at t/piwik_api_p.t line 114.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 6.
t/piwik_api_p.t .......... 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 5/6 subtests 
...

This seems to happen with older Mojolicious versions (< 8.00 or so).

eserte commented 5 years ago

I see that the dependency version was increased in 0.26_1, but it's still not enough --- it fails with Mojolicious 7.93, for example. 8.04 and newer looks fine. Don't know about the Mojolicious versions in between.

Akron commented 3 years ago

Should be fixed in the meantime - sorry for not responding to this issue.