~rashi007/mailman/docsfix

« back to all changes in this revision

Viewing changes to tox.ini

  • Committer: Barry Warsaw
  • Date: 2014-11-11 22:36:25 UTC
  • mfrom: (7257.1.2 coverage)
  • Revision ID: barry@list.org-20141111223625-uz607z1bhf6sflby
Add support for a 'coverage' environment.  e.g. `tox -e coverage` will run the
test suite and provide a code coverage report.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
commands = python -m nose2 -v
15
15
usedevelop = True
16
16
deps = psycopg2
 
17
 
 
18
[coverage]
 
19
rcfile = {toxinidir}/coverage.ini
 
20
rc = --rcfile={[coverage]rcfile}
 
21
 
 
22
[testenv:coverage]
 
23
basepython = python2.7
 
24
commands =
 
25
    coverage run {[coverage]rc} -m nose2 -v
 
26
    coverage combine {[coverage]rc}
 
27
    coverage html {[coverage]rc}
 
28
#sitepackages = True
 
29
usedevelop = True
 
30
whitelist_externals = python-coverage
 
31
deps = coverage
 
32
# Don't use --pre version packages.
 
33
install_command = pip install {opts} {packages}
 
34
setenv =
 
35
    COVERAGE_PROCESS_START={[coverage]rcfile}
 
36
    COVERAGE_OPTIONS="-p"
 
37
    COVERAGE_FILE={toxinidir}/.coverage