Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / third_party / pycoverage / tox.ini
blob7e78ea4a89a8f69fa3da3f4a02f3f662e0c2c635
1 # Tox (http://tox.testrun.org/) is a tool for running tests
2 # in multiple virtualenvs. This configuration file will run the
3 # test suite on all supported python versions. To use it, "pip install tox"
4 # and then run "tox" from this directory.
6 [tox]
7 envlist = py25, py26, py27, py31, py32, py33, pypy
9 [testenv]
10 commands =
11 {envpython} setup.py --quiet clean develop
13 # Create tests/zipmods.zip
14 # Install the egg1 egg
15 # Remove the C extension so that we can test the PyTracer
16 {envpython} igor.py zip_mods install_egg remove_extension
18 # Test with the PyTracer
19 {envpython} igor.py test_with_tracer py {posargs}
21 # Build the C extension and test with the CTracer
22 {envpython} setup.py --quiet build_ext --inplace
23 {envpython} igor.py test_with_tracer c {posargs}
25 deps =
26 nose
27 mock
29 [testenv:pypy]
30 # PyPy has no C extensions
31 setenv =
32 COVERAGE_NO_EXTENSION=1