Skip to content
This repository was archived by the owner on Apr 1, 2020. It is now read-only.

Commit 7b1655b

Browse files
committedApr 15, 2013
Add test coverage measurement in tox.
1 parent 238766f commit 7b1655b

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed
 

‎.coveragerc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[run]
2+
branch = True
3+
include = djangosecure/*
4+
omit = djangosecure/test*.py

‎coverage.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
coverage erase
4+
tox
5+
coverage html

‎tox.ini

+13-1
Original file line numberDiff line numberDiff line change
@@ -4,59 +4,71 @@ envlist=py25-1.2,py25-1.3,py25-1.4,py26-1.2,py26-1.3,py26-1.4,py26,py26-trunk,py
44
[testenv]
55
deps=
66
django==1.5.1
7-
commands=python runtests.py
7+
coverage==3.6
8+
commands=coverage run -a runtests.py
89

910
[testenv:py25-1.2]
1011
basepython=python2.5
1112
deps=
1213
django==1.2.7
14+
coverage==3.6
1315

1416
[testenv:py25-1.3]
1517
basepython=python2.5
1618
deps=
1719
django==1.3.7
20+
coverage==3.6
1821

1922
[testenv:py25-1.4]
2023
basepython=python2.5
2124
deps=
2225
django==1.4.5
26+
coverage==3.6
2327

2428
[testenv:py26-1.2]
2529
basepython=python2.6
2630
deps=
2731
django==1.2.7
32+
coverage==3.6
2833

2934
[testenv:py26-1.3]
3035
basepython=python2.6
3136
deps=
3237
django==1.3.7
38+
coverage==3.6
3339

3440
[testenv:py26-1.4]
3541
basepython=python2.6
3642
deps=
3743
django==1.4.5
44+
coverage==3.6
3845

3946
[testenv:py26-trunk]
4047
basepython=python2.6
4148
deps=
4249
https://github.com/django/django/tarball/master
50+
coverage==3.6
4351

4452
[testenv:py27-1.2]
4553
basepython=python2.7
4654
deps=
4755
django==1.2.7
56+
coverage==3.6
4857

4958
[testenv:py27-1.3]
5059
basepython=python2.7
5160
deps=
5261
django==1.3.7
62+
coverage==3.6
5363

5464
[testenv:py27-1.4]
5565
basepython=python2.7
5666
deps=
5767
django==1.4.5
68+
coverage==3.6
5869

5970
[testenv:py27-trunk]
6071
basepython=python2.7
6172
deps=
6273
https://github.com/django/django/tarball/master
74+
coverage==3.6

0 commit comments

Comments
 (0)
This repository has been archived.