On Thu, Aug 15, 2002 at 10:52:49AM +0200, Sven Verdoolaege wrote:
> On Tue, Aug 13, 2002 at 04:08:24PM -0000, Josts Smokehouse wrote:
> > A simple 't/use.t' that says:
> > 
> > #!/usr/bin/env perl -w
> > use strict;
> > use Test;
> > BEGIN { plan tests => 1 }
> > 
> > use Your::Module::Here; ok(1);
> > exit;
> > __END__
> 
> Do you think that is useful ?

The script thinks so :-)

Yes, it *is* somewhat useful:

1. It finds
a) undeclared dependencies.
b) environment problems that didn't show up earlier (as they should).

2. Tests can only ever show the presence of bugs, not the absence.

> Testing for the actual functoniality is not going to be easy.

That is so for quite a few modules, especially *unattended* testing.

Jost
-- 
| [EMAIL PROTECTED]  Please help stamp out spam! |
| Postmaster, JAPH, resident answer machine          am RZ der RUB |
| Pluralitas non est ponenda sine necessitate                      |
|                                 William of Ockham (1285-1347/49) |

Reply via email to