Files
deb-python-falcon/tox.ini
kgriffs e3304c13c0 test: Execution profiling
Adds cprofile to the testenv:py27, as well as to falcon-bench. In the latter
case, add the '-p' switch to profile instead of run timeit. If you would like
the profiling info dumped to a data file, set the filename using '-o'.

Closes #139
2013-05-15 19:11:28 -05:00

29 lines
742 B
INI

[tox]
envlist = py26,py27,py33,pypy,flake8
[testenv]
deps = -r{toxinidir}/tools/test-requires
commands = {toxinidir}/tools/clean_cythoned.sh {toxinidir}/falcon
nosetests {posargs}
[testenv:py27]
deps = -r{toxinidir}/tools/test-requires
nose-cprof
commands = {toxinidir}/tools/clean_cythoned.sh {toxinidir}/falcon
nosetests \
--with-cprofile \
--cprofile-stats-erase \
--cprofile-stats-file=cprofile.dat \
{posargs}
[testenv:py3kwarn]
deps = py3kwarn
commands = py3kwarn falcon
[testenv:flake8]
deps = flake8
commands = flake8 \
--max-complexity=12 \
--exclude=.venv,.tox,dist,doc,./falcon/bench/nuts \
--ignore=F403