go ahead... be a heretic | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
G'day AnomalousMonk, "The naming convention for SomeModule.pm test code is SomeModule.t. This is not enforced in any way, but it's what everyone expects." I have never encountered that convention — where have you seen it? I certainly wouldn't expect it; I've mostly seen test files starting with numbers and are all lowercase (e.g. nn-name.t). A t/ directory I'd create for an OO module might look something like:
And, as a real world example, here's part of the output of make test for a $work module I ran in the last hour:
Just in case I was having a sudden, and unexpected, mental breakdown, I checked a few arbitrary, but well-known, CPAN modules' t/ directories: As you can see, for the most part they all follow the same basic naming convention (i.e. number, name, .t). There are a few exceptions (e.g. pod.t) but there are none that look like your SomeModule.t. — Ken In reply to Re^3: Stupidest Prime Number detector ever!! [*.t naming convention]
by kcott
|
|