Permalink
Browse files

- Tests can be run with coverage output if you've got ``nose``

  installed in the interpreter which you use to run tests.  Using an
  interpreter with ``nose`` installed, do ``python setup.py
  nosetests`` within a checkout of the ``repoze.bfg`` package to see
  test coverage output.
  • Loading branch information...
1 parent 6e18779 commit b07cfed841c83498a2c8c9153367525f725cd100 Chris McDonough committed Jan 11, 2009
Showing with 10 additions and 2 deletions.
  1. +8 −0 setup.cfg
  2. +2 −2 setup.py
View
@@ -1,2 +1,10 @@
[easy_install]
index_url = http://dist.repoze.org/lemonade/dev/simple
+
+[nosetests]
+match=^test
+nocapture=1
+cover-package=repoze.bfg
+with-coverage=1
+cover-erase=1
+
View
@@ -29,12 +29,12 @@
README = CHANGES = ''
install_requires=[
+ 'setuptools',
'chameleon.core [lxml] >= 1.0b13',
'chameleon.genshi >= 1.0b2',
'chameleon.zpt >= 1.0b8',
'PasteScript',
'Routes',
- 'setuptools',
'WebOb',
'zope.interface',
'zope.component',
@@ -66,7 +66,7 @@
namespace_packages=['repoze', 'repoze.bfg'],
zip_safe=False,
install_requires = install_requires,
- tests_require= install_requires + ['Sphinx', 'docutils'],
+ tests_require= install_requires + ['Sphinx', 'docutils', 'coverage'],
test_suite="repoze.bfg.tests",
entry_points = """\
[paste.paster_create_template]

0 comments on commit b07cfed

Please sign in to comment.