[MERGE] Automatic discovery of tests

Robert Collins robertc at robertcollins.net
Wed Nov 7 17:20:43 GMT 2007


On Tue, 2007-11-06 at 16:11 -0600, John Arbash Meinel wrote:
> Attached is a patch which changes how we find tests to run.
> 
> It adds a "bzrlib.tests.load_and_adapt_modules" function, which allows us
> to simply find tests which need to be run based on the module names. This
> means that we don't need to explicitly list the name of new test files.
> I've actually been using some of this code in plugins that I've written,
> and I've found it very nice to just pop a new "test_foo.py" file into my
> tests/ directory and have it just work.

I'd still really rather we didn't do this as per the previous
discussions about it.

-Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20071108/cb911bef/attachment.pgp 


More information about the bazaar mailing list