Re: unit test policy questions

Marius Gedminas <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <20100729144323.GA8153@platonas>
On Thu, Jul 29, 2010 at 02:52:36PM +0200, yuppie wrote:
> Hi Martin!
> 
> 
> Martin Aspeli wrote:
> > On 29 July 2010 20:14, yuppie<[email protected]>  wrote:
> >> Martin Aspeli wrote:
> >>> I never do either. I install zc.recipe.testrunner in a buildout and
> >>> use bin/test, which picks up tests in modules automatically.
> >>
> >> Sure. But do you always run all tests it picks up while working on a
> >> specific test file? Or do you use bin/test with options that allow to
> >> run specific files?
> >
> > See the -s and -t options. :)
> 
> Well. It's not that simple. Today I tried to modify 
> Products.GenericSetup.tests.test_tool using CMF.buildout/trunk.
> 
> I usually use the -m option, but that doesn't work in CMF.buildout 
> because it already uses that option.

Ouch.  Not a good idea, in my book.

> So I tried to execute the module and noticed that's currently broken.
> 
> The -s option doesn't allow to run a specific module.
> 
> 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.

Marius Gedminas
-- 
http://pov.lt/ -- Zope 3/BlueBream consulting and development

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkxRk4gACgkQkVdEXeem148/AQCfSeUE1x/Wprcivsr6zHf0RoNM
VCMAn0GJXLFthaC1hORKBOGdGt8VIifY
=wKAr
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.