[Zope-dev] unit test policy questions

yuppie y.2010 at wcm-solutions.de
Fri Jul 30 03:16:53 EDT 2010


Hi!


Marius Gedminas wrote:
>> And if I use the -t option (-ttest_tool), most tests fail :(
>
> That is an indication that the tests aren't independent.  I would
> consider such a test suite to be broken.

Well. In this case the tests are independent from each other, but not 
from the way tests are filtered:

The -m filter is applied *before* test modules are imported.

The -t filter is applied *after* importing all available test modules.

Some nasty code in Zope 2 behaves differently if different modules are 
imported before running the tests.


Cheers,

	Yuppie


More information about the Zope-Dev mailing list