Commits

Atsushi Odagiri  committed 8bdb09d

add coverage env

  • Participants
  • Parent commits 7e7a2d5

Comments (0)

Files changed (2)

 [aliases]
 upload_docs = build_sphinx upload_docs
 release = check -r -s upload_docs register sdist upload
+
+[nosetests]
+with-coverage=1
+cover-package=bpmappers
 [tox]
-envlist = py25,py26,py27
+envlist = py25,py26,py27,cover
 
 [testenv]
 deps = 
    django
    pil
-commands = {envpython} setup.py test
+   nose
+commands = 
+   nosetests
+
+[testenv:cover]
+basepython = python2.6
+deps = 
+   django
+   pil
+   nose
+   coverage
+commands = 
+   nosetests --with-coverage --cover-package=bpmappers
+