Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Dev

test_requires and test runners

 

 

Zope dev RSS feed   Index | Next | Previous | View Threaded


reinout at vanrees

Sep 1, 2009, 1:59 AM

Post #1 of 1 (190 views)
Permalink
test_requires and test runners

I have several packages that have some extra dependencies for testing.
There's tests_require in setup.py, but there's also extras_require where you
can add a 'test'. The extras_require is what I use now.

In buildout's [test] section, you simply do something like:

[test]
recipe = ...
eggs = my.egg
my.egg[test]

With recent buildout versions, a 'my.other.egg[test]' in my.egg's 'test'
extras_require is also picked up OK. But: I don't want to look in all my
dependencies whether they have or haven't got a 'test' extras_require.

The main problem surfaces when using a test-all runner like
plone.recipe.alltests: you don't want to figure out for all those package's
whether they have such a 'test' extras_require...


So: any ideas on how to deal with this? Alternative setups? Use
test_requires? Should test runners pick it up automagically? Is there
something plone.recipe.alltests could do?


Reinout


--
Reinout van Rees - reinout[at]vanrees.org - http://reinout.vanrees.org
Software developer at http://www.thehealthagency.com
"Military engineers build missiles. Civil engineers build targets"

_______________________________________________
Zope-Dev maillist - Zope-Dev[at]zope.org
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 )

Zope dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.