Skip Menu |

This queue is for tickets about the Finance-Quote CPAN distribution.

Report information
The Basics
Id: 17740
Status: resolved
Priority: 0/
Queue: Finance-Quote

People
Owner: eco [...] ecocode.net
Requestors: DON [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.11
Fixed in: (no value)



Subject: test/*.t tests are not run with make test
the test/*.t tests are not run with make test. Additionally, when they are run, quite a few of them fail: Argument "" isn't numeric in numeric gt (>) at t/vwd.t line 17. # Failed test 3 in t/vwd.t at line 17 # t/vwd.t line 17 is: ok($quotes{"847402","last"} > 0); # Failed test 5 in t/vwd.t at line 19 # t/vwd.t line 19 is: ok($quotes{"847402","currency"} eq "EUR"); t/vwd................FAILED tests 3, 5 Failed 2/7 tests, 71.43% okay t/yahoo..............ok t/yahoo_asia.........ok t/yahoo_australia....ok t/yahoo_brasil.......ok t/yahoo_europe.......ok 10/21# Failed test 20 in t/yahoo_europe.t at line 57 # t/yahoo_europe.t line 57 is: ok($xetraquotes{"973348.DE","currency"} eq "USD"); # Failed test 21 in t/yahoo_europe.t at line 58 # t/yahoo_europe.t line 58 is: ok(($xetraquotes{"973348.DE","currency"} eq "USD") && t/yahoo_europe.......FAILED tests 20-21 Failed 2/21 tests, 90.48% okay t/yahoo_nz...........ok t/za.................ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/aex.t 23 2 8.70% 9-10 t/cdnfundlibrary.t 255 65280 8 16 200.00% 1-8 t/maninvestments.t 8 7 87.50% 1-7 t/union.t 7 5 71.43% 2-6 t/vwd.t 7 2 28.57% 3 5 t/yahoo_europe.t 21 2 9.52% 20-21 Failed 6/33 test scripts, 81.82% okay. 26/431 subtests failed, 93.97% okay.
If you mae a symbolic link from t -> test then the tests will be run by the 'make test' command. I don not know why this extra step is present. It was there when I took over maintainership of the project. This project does screen scraping of various financial web sites. Any time one of these sites changes the layout of the web page, the associated F::Q module is likely to start failing. These modules are written to be layout independent, if possible, but that's not always possible. The tests are all run and verified to pass before each release of F::Q.
test directory modified in version 1.14. see the Changelog for further info