# from David Cantrell
# on Wednesday 01 August 2007 03:21 am:

>>> Wrong.  If AUTHOR_TESTING then surely all tests *must* pass both
>>> with and *without* the optional module!
>>
>> What good does it do to skip the test if AUTHOR_TESTING?  That just
>> gets us back into the same situation as the current one where the
>> author didn't have Test::Pod and pod which fails the tests got
>> shipped.
>
>Let us assume that I write a module that, if you have a particular
>module installed will do some extra stuff.  This is very common.
>...
>Skipping tests because you correctly identify that the optional module
>isn't available is, of course, counted as passing.

Test::Pod is *not* optional to PERL_AUTHOR_TESTING.  If your intent is 
to test the pod (here, I am taking PERL_AUTHOR_TESTING to imply that 
we're trying to prevent bad pod), you must have the module that tests 
it.

That is, to test the pod, you have to test the pod.

To put it another way, the pod is not tested unless the pod tests have 
been run.

If the pod tests didn't get run, the pod hasn't been tested.

A pod test which skips due to 'no Test::Pod' has not tested the pod.

To test the pod, you must run the pod tests.

--Eric
-- 
Peer's Law: The solution to the problem changes the problem.
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------

Reply via email to