Test file numbers

Eric Wilhelm scratchcomputing at gmail.com
Mon Oct 1 01:38:21 BST 2007


# from Andy Lester
# on Sunday 30 September 2007 17:13:

>The argument of "There's  
>no point in running all these other tests if the 000 one doesn't  
>pass" is the worst kind of worrying about nothing.

It's more a matter of output formatting.  If the module won't load 
because of a syntax error, the BAIL_OUT in 00-load.t makes this obvious 
and not obscured by a flood of strange runtime errors and 
what-have-you.

Other than that, numbering doesn't do much good if you're not testing 
the HTTP protocol ;-)

Perhaps it would be nice to have some kind of support for an 
explicit "compile-check" test, but for now naming it 00-load.t works 
fine.

Note that this is a bit more obvious when running tests in parallel.  If 
you see 9 extremely noisy failures surrounding one BAIL_OUT, you could 
quite easily get confused.

--Eric
-- 
To a database person, every nail looks like a thumb.
--Jamie Zawinski
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------


More information about the tapx-dev mailing list