In article <[EMAIL PROTECTED]>, nadim khemir
<[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I was discussing one of my modules with a friend and he asked how many tests
> I 
> had. I answered 500 hundred but it then hit me that to have the module 
> working I had to rely on other modules written by other people.

I've thought about this too, but a test in a Perl file isn't really the
"test" that most people would find interesting. For instance, here's a
common sequence in my tests. I have four lines of "ok N", but it's
really just one functional test:


use_ok( $class );
can_ok( $class, $method );

ok( -e $input_file, "Input file exists" );
is( $class->$method( $input_file ), $expected, "Got it right!" );


I'm not saying we shouldn't figure out the grand number of tests, but
that we should temper that knowledge with reality. :)

Reply via email to