[MERGE] Automatic discovery of tests
Alexander Belchenko
bialix at ukr.net
Thu Nov 8 08:39:30 GMT 2007
Vincent Ladeuil пишет:
>>>>>> "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.
Sorry, but I don't understand your point.
Alexander
More information about the bazaar
mailing list