Skip Menu |

This queue is for tickets about the DateTime-Format-Human-Duration CPAN distribution.

Report information
The Basics
Id: 52920
Status: resolved
Priority: 0/
Queue: DateTime-Format-Human-Duration

People
Owner: Nobody in particular
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.0.1
Fixed in: 0.0.3



Subject: Two tests are counting badly
If Test::Pod::Coverage is installed then the pod-coverage test succeeds. But if it isn't installed the test count in t/pod-coverage.t is off by one. If DateTime is installed then the 01.methods.t test succeeds but if it isn't installed then the test count is off by one. One solution is to add the two dependencies. Another solution is to count right which is difficult because at some point in time Test::More could also not count right when use_ok within a BEGIN block was involved. So this would involve a prereq declaration of a higher Test::More than 0. Or remove the use_ok within the BEGIN, which is always a good idea because not only Ovid thinks that the concept of use_ok is broken. Or whatever:) Best seasonal regards,
Switched from pre-counted tests, to instead using done_testing(); https://github.com/mstratman/DateTime-Format-Human-Duration/commit/22dc15650a94d4f971de1ecf7ebe33b1c3744b41 Hopefully this addresses it? Let me know if not.