Subject: | Tests fails because HTML::TreeBuilder is not found |
While building the latest XML-Twig 3.40, I've found that the test suites will fail if
HTML::TreeBuilder is not installed. The workaround is obvious, but if the tests *require*
HTML::TreeBuilder then it should really my listed in the META.json file as a required build
prereq.
In addition, there are a lot of tests which are skipped because a number of other CPAN prereqs
are not installed. It would be nice if these were listed as recommends, so that build systems
can at least try to make them available (my own system attempts to satisfy recommends as well
as requires, for example).
Here's the two failures that demonstrate the requirement for HTML::TreeBuilder:
2012-05-10 15:26:43] cannot parse HTML: missing HTML::TreeBuilder v >= 3.13
[2012-05-10 15:26:43] at t/test_3_38.t line 114
[2012-05-10 15:26:43] t/test_3_38.t .......................
[2012-05-10 15:26:43] Dubious, test returned 2 (wstat 512, 0x200)
[2012-05-10 15:26:43] Failed 4/21 subtests
[2012-05-10 15:26:43] cannot parse HTML: missing HTML::TreeBuilder v >= 3.13
[2012-05-10 15:26:43] at t/test_3_39.t line 59
[2012-05-10 15:26:43] t/test_3_39.t .......................
[2012-05-10 15:26:43] Dubious, test returned 2 (wstat 512, 0x200)
[2012-05-10 15:26:43] Failed 4/12 subtests
...
...
[2012-05-10 15:26:43] Test Summary Report
[2012-05-10 15:26:43] -------------------
[2012-05-10 15:26:43] t/test_3_38.t (Wstat: 512 Tests: 17 Failed: 0)
[2012-05-10 15:26:43] Non-zero exit status: 2
[2012-05-10 15:26:43] Parse errors: Bad plan. You planned 21 tests but ran 17.
[2012-05-10 15:26:43] t/test_3_39.t (Wstat: 512 Tests: 8 Failed: 0)
[2012-05-10 15:26:43] Non-zero exit status: 2
[2012-05-10 15:26:43] Parse errors: Bad plan. You planned 12 tests but ran 8.
[2012-05-10 15:26:43] Files=99, Tests=2546, 77 wallclock secs ( 1.85 usr 0.82 sys + 27.23
cusr 17.61 csys = 47.51 CPU\
)
[2012-05-10 15:26:43] Result: FAIL
[2012-05-10 15:26:43] Failed 2/99 test programs. 0/2546 subtests failed.
[2012-05-10 15:26:43] make: *** [test_dynamic] Error 255