reneeb / Mojolicious-Plugin-Prove

Run single test files in Mojolicious.
0 stars 1 forks source link

Test suite fails (with older Mojolicious?) #4

Open eserte opened 3 years ago

eserte commented 3 years ago

The test suite fails on some of my systems:

#   Failed test '200 OK'
#   at t/basic.t line 38.
#          got: '500'
#     expected: '200'

#   Failed test at t/basic.t line 39.
#          got: "<!DOCTYPE html>\x{0a}<!-- Request ID: 1b7h6Xog -->\x{0a}<htm"...
#       length: 25685
#     expected: "<h2>Tests</h2>\x{0a}<a href="/prove/test/base/run">run "...
#       length: 220
#     strings begin to differ at char 2 (line 1 column 2)

#   Failed test '200 OK'
#   at t/basic.t line 51.
#          got: '500'
#     expected: '200'

#   Failed test at t/basic.t line 52.
#          got: "<!DOCTYPE html>\x{0a}<!-- Request ID: Njy-Z9u_ -->\x{0a}<htm"...
#       length: 25755
#     expected: "<link href="/ppi.css" rel="stylesheet">\x{0a}<script sr"...
#       length: 1494
#     strings begin to differ at char 2 (line 1 column 2)
... etc ...

Statistical analysis suggests that this happens for older Mojolicious installations:

****************************************************************
Regression 'mod:Mojolicious'
****************************************************************
Name                   Theta          StdErr     T-stat
[0='const']           0.0000          0.0000       0.89
[1='eq_8.12']        -0.0000          0.0000      -0.72
[2='eq_8.17']        -0.0000          0.0000      -3.77
[3='eq_8.40']        -0.0000          0.0000      -1.88
[4='eq_8.41']        -0.0000          0.0000      -0.72
[5='eq_8.43']         0.0000          0.0000       3.77
[6='eq_8.58']         1.0000          0.0000    5652289437833848.00
[7='eq_9.01']         1.0000          0.0000    7722497544591585.00
[8='eq_9.02']         1.0000          0.0000    7297074286891524.00
[9='eq_9.03']         1.0000          0.0000    7890397551921937.00

R^2= 1.000, N= 66, K= 10
****************************************************************
eserte commented 3 years ago

On some systems the error messages look different:

"curfile" is not exported by the Mojo::File module
Can't continue after import errors at t/basic.t line 9.
BEGIN failed--compilation aborted at t/basic.t line 9.
t/basic.t ................ 
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run 
...