mlawren.myopenid.com
- Website: mlawren.myopenid.com/
Recent Actions
-
Commented on Discoverable tests and creating testing standards
After a big search through the (unfortunately not well documented) Module::Install code I found the "tests_recursive" function that does the same thing to the required depth automatically....
-
Commented on Discoverable tests and creating testing standards
It seems that the glob used by MakeMaker when running "make test" for finding tests is "t/*.t", which doesn't discover the tests in subdirectories. Does anyone know of a way of changing that?...
Comment Threads
-
Michael G Schwern commented on
Discoverable tests and creating testing standards
I like the naming convention, I try to do that on my projects. Usually I go with one test file per method, especially in untested code methods to too much, so testing
Foo::Bar->thing
would bet/Foo/Bar/thing.t
.I've tried the
can_ok
stubs before, it's whycan_ok
takes a list of methods, and I found it has major drawbacks. It gave the illusion of more test coverage than really existed (caveat, this was beforeDevel::Cover
).For a dev team that isn't sold on the value of testing, it trained the developers to …
-
Michael G Schwern commented on
Discoverable tests and creating testing standards
I add this to my WriteMakefile.
test => { TESTS => 't/*.t t/*/*.t t/*/*/*.t', },
-
Ovid commented on
Discoverable tests and creating testing standards
Michael,
Thanks for the thoughtful comments. I'll have to take that into consideration.
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.