summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-01-11 22:39:40 +0000
committerChris McDonough <chrism@agendaless.com>2009-01-11 22:39:40 +0000
commitb07cfed841c83498a2c8c9153367525f725cd100 (patch)
tree3f95021a65e3da7cb35d0782a70524239b8ce17c
parent6e18779652d2d02370c94bed040d55f2808e37f4 (diff)
downloadpyramid-b07cfed841c83498a2c8c9153367525f725cd100.tar.gz
pyramid-b07cfed841c83498a2c8c9153367525f725cd100.tar.bz2
pyramid-b07cfed841c83498a2c8c9153367525f725cd100.zip
- 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.
-rw-r--r--setup.cfg8
-rw-r--r--setup.py4
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]