Skip to content

Commit 970ec3e

Browse files
committed
Tune coverage reporting
1 parent d884867 commit 970ec3e

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

tox.ini

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
[tox]
2+
# Having the .tox directory in the project directory slows down the
3+
# `pip install -e .` step required by `usedevelop = true` considerably.
4+
# By moving it out of the way, we trim test execution time by 80%.
5+
toxworkdir = {homedir}/.toxenvs/django-click
26
envlist =
7+
coverage_erase,
38
{py27,py34,pypy19}-{dj15,dj16,dj17,dj18},
4-
{py27,pypy19}-dj14
9+
{py27,pypy19}-dj14,
10+
flake8
11+
coverage_report
512

613
[testenv]
14+
usedevelop = true
715
passenv = LC_ALL, LANG, LC_CTYPE
816
deps =
917
-rrequirements-test.txt
@@ -13,3 +21,15 @@ deps =
1321
dj17: django==1.7
1422
dj18: django==1.8
1523
commands = py.test -rxs --cov-report= --cov-append --cov djclick djclick
24+
25+
[testenv:coverage_erase]
26+
commands = coverage erase
27+
deps = coverage
28+
29+
[testenv:flake8]
30+
commands = flake8 djclick
31+
deps = flake8
32+
33+
[testenv:coverage_report]
34+
commands = coverage html
35+
deps = coverage

0 commit comments

Comments
 (0)