From b07cfed841c83498a2c8c9153367525f725cd100 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 11 Jan 2009 22:39:40 +0000 Subject: - 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. --- setup.cfg | 8 ++++++++ setup.py | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 9e9ffa974..9a12e4044 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 + diff --git a/setup.py b/setup.py index cb69d4147..3eab5cb9a 100644 --- a/setup.py +++ b/setup.py @@ -29,12 +29,12 @@ except IOError: 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 @@ setup(name='repoze.bfg', 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] -- cgit v1.2.3