Skip to content

Commit 51beb51

Browse files
committed
Simplify the test settings. Should leave a .coverage state file for coveralls to pick up now ...
1 parent 69ace6a commit 51beb51

File tree

2 files changed

+18
-23
lines changed

2 files changed

+18
-23
lines changed

.coveragerc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[run]
2+
parallel = 1
3+
omit = celery.utils.debug,celery.tests.*,celery.bin.graph

tox.ini

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ deps = -r{toxinidir}/requirements/default.txt
1717
-r{toxinidir}/requirements/test-ci.txt
1818
commands = {toxinidir}/extra/release/removepyc.sh {toxinidir}
1919
pip install anyjson
20-
nosetests -vd celery.tests --with-xunit \
21-
--xunit-file="{toxinidir}/nosetests.xml" \
22-
--cover3-html-dir={toxinidir}/cover \
23-
--cover3-xml-file={toxinidir}/coverage.xml
20+
nosetests celery.tests --with-coverage []
21+
coverage combine
22+
coverage report
2423

2524
[testenv:3.2]
2625
basepython = python3.2
@@ -29,10 +28,9 @@ deps = -r{toxinidir}/requirements/default.txt
2928
-r{toxinidir}/requirements/test-ci.txt
3029
commands = {toxinidir}/extra/release/removepyc.sh {toxinidir}
3130
pip install anyjson
32-
nosetests -vd celery.tests --with-xunit \
33-
--xunit-file="{toxinidir}/nosetests.xml" \
34-
--cover3-html-dir={toxinidir}/cover \
35-
--cover3-xml-file={toxinidir}/coverage.xml
31+
nosetests celery.tests --with-coverage []
32+
coverage combine
33+
coverage report
3634

3735
[testenv:2.7]
3836
basepython = python2.7
@@ -41,11 +39,9 @@ deps = -r{toxinidir}/requirements/default.txt
4139
-r{toxinidir}/requirements/test-ci.txt
4240
commands = {toxinidir}/extra/release/removepyc.sh {toxinidir}
4341
pip install anyjson
44-
nosetests -v --with-xunit \
45-
--xunit-file={toxinidir}/nosetests.xml \
46-
--with-coverage3 --cover3-xml \
47-
--cover3-html-dir={toxinidir}/cover \
48-
--cover3-xml-file={toxinidir}/coverage.xml
42+
nosetests --with-coverage []
43+
coverage combine
44+
coverage report
4945

5046
[testenv:2.6]
5147
basepython = python2.6
@@ -54,11 +50,9 @@ deps = -r{toxinidir}/requirements/default.txt
5450
-r{toxinidir}/requirements/test-ci.txt
5551
commands = {toxinidir}/extra/release/removepyc.sh {toxinidir}
5652
pip install anyjson
57-
nosetests -v --with-xunit \
58-
--xunit-file={toxinidir}/nosetests.xml \
59-
--with-coverage3 --cover3-xml \
60-
--cover3-html-dir={toxinidir}/cover \
61-
--cover3-xml-file={toxinidir}/coverage.xml
53+
nosetests --with-coverage []
54+
coverage combine
55+
coverage report
6256

6357
[testenv:pypy]
6458
basepython = pypy
@@ -67,8 +61,6 @@ deps = -r{toxinidir}/requirements/default.txt
6761
-r{toxinidir}/requirements/test-ci.txt
6862
commands = {toxinidir}/extra/release/removepyc.sh {toxinidir}
6963
pip install anyjson
70-
nosetests -v --with-xunit \
71-
--xunit-file={toxinidir}/nosetests.xml \
72-
--with-coverage3 --cover3-xml \
73-
--cover3-html-dir={toxinidir}/cover \
74-
--cover3-xml-file={toxinidir}/coverage.xml
64+
nosetests --with-coverage []
65+
coverage combine
66+
coverage report

0 commit comments

Comments
 (0)