Hi Christian > Betreff: Re: [Zope-dev] Re: AW: Heads up: Dependencies! > > On Sun, Apr 13, 2008 at 12:25:46PM -0400, Jim Fulton wrote: > > > > On Apr 12, 2008, at 10:01 PM, Tres Seaver wrote: > >> Even better: use the documented setuptools keyword[1] > >> 'tests_require', and get the testrunner / buildout to use > that hook > >> when running tests. > > > > This doesn't address the central point that testing a different > > software configuration in testing than will be used in > production can > > lead to unpleasant surprises in production. > > Fullack. > > @Roger: I think you might have misunderstood the > flying-versus-testing argument. *Any* change in the software > configuration that makes the test environment differ from the > production environment raises the risk of getting unexpected > errors. As the world isn't just black and white the two > extremes (no just-for-test dependencies in production versus > all-even-just-for-test dependencies in production) could be > spelled out like this: > > - Minimize the amount of special dependencies that only your > testing code > needs. (Only get a new dependency for a test if it's really > worth it. > `zope.testing` is an example.) > > - Maximize the amount of dependencies that are shared within > testing and > production. (Carrying over `zope.testing` into production > is an example as > well.)
I agree, but that was not the point in my previous mail. [...] > > FWIW, I think using test extras is a necessary evil when testing > > dependencies are significant. I wouldn't use it just to avoid a > > dependency on zope.testing, but I would and have used test > extras to > > avoid more extensive dependencies. > > +1 as well. One of my intentions here is to avoid getting zope.app.* > dependencies in zope.* packages. However, in the long run, > those dependencies probably should go away by reworking the > tests or refactoring the (overall) code base. Yes, that's what I was asking for. Ok, I will pick up this topic as soon as I have time. Regards Roger Ineichen > Christian > > > -- > gocept gmbh & co. kg - forsterstrasse 29 - 06112 halle > (saale) - germany www.gocept.com - [EMAIL PROTECTED] - phone +49 > 345 122 9889 7 - fax +49 345 122 9889 1 - zope and plone > consulting and development _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )