[Module-build-general] RFC: Build test test_dirs=(list)
Status: Beta
Brought to you by:
kwilliams
|
From: David C. <dl...@ha...> - 2003-08-11 22:54:36
|
When working on a large distribution with many packages/modules and
tests, I often don't want to wait for all tests in the suite to run when
I'm working deep in the heirarchy. Especially when I'm pretending to
practice Extreme Programming.
Just today I've created a builder subclass and have overridden the
test_files() method to look for $self->{args}{test_dirs} and add all the
*.t files found in or beneath those directories; IMO much more convenient
than typing a long list for $self->{args}{test_files}. So for instance
when I'm creating the Foo::Bar::Baz::Feh module in package Foo::Bar,
all the tests for Feh live in t/Foo/Bar/Baz/Feh, and I run "Build test
test_dirs=t/Foo/Bar/Baz/Feh".
I'm trying to think of a reason not to have it add *.pl as well....?
I'd like to see something like this incorporated into M::B. It's a
trivial patch that I'd be happy to submit.
Comments....?
|