[MERGE] Automatic discovery of tests

Vincent Ladeuil v.ladeuil+lp at free.fr
Thu Nov 8 06:48:51 GMT 2007


>>>>> "robert" == Robert Collins <robertc at robertcollins.net> writes:

    robert> 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.

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

I'm with Robert on that point. I understand Alexander concerns
about chasing bad citizens with respect to windows compatibility,
but I think in the long run, things will go worse if we stop
embedding the tests.

          Vincent



More information about the bazaar mailing list