Skip to content

Commit c153c9c

Browse files
committed
fixes coverall support
1 parent 4161252 commit c153c9c

File tree

4 files changed

+37
-2
lines changed

4 files changed

+37
-2
lines changed

.coveragerc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[run]
2+
branch = True
3+
source = concurrency
4+
include =
5+
6+
omit =
7+
8+
9+
[report]
10+
# Regexes for lines to exclude from consideration
11+
exclude_lines =
12+
# Have to re-enable the standard pragma
13+
pragma: no cover
14+
# Don't complain about missing debug-only code:
15+
def __repr__
16+
if self\.debug
17+
# Don't complain if tests don't hit defensive assertion code:
18+
raise AssertionError
19+
raise NotImplementedError
20+
# Don't complain if non-runnable code isn't run:
21+
#if 0:
22+
if __name__ == .__main__.:
23+
24+
ignore_errors = True
25+
26+
[html]
27+
directory = ~build/coverage

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
notes.txt
2+
.coverage
23
/.idea
34
/.tox
45
docs/build/

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ install:
2323
- python setup.py -q install
2424

2525
script:
26-
cd demo && ./manage.py test concurrency
26+
- make test
2727

2828
before_install:
2929
- sh -c "if [ '$DBENGINE' = 'pg' ]; then psql -c 'DROP DATABASE IF EXISTS concurrency;' -U postgres; fi"

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,17 @@ locale:
88
export PYTHONPATH=${PYTHONPATH}
99
cd concurrency && django-admin.py compilemessages --settings=${DJANGO_SETTINGS_MODULE}
1010

11-
1211
docs:
1312
mkdir -p ${BUILDDIR}/
1413
sphinx-build -aE docs ${BUILDDIR}/docs
1514
firefox ${BUILDDIR}/docs/index.html
1615

16+
test:
17+
export PYTHONPATH=${PYTHONPATH}
18+
coverage run demo/manage.py test concurrency --settings=${DJANGO_SETTINGS_MODULE}
19+
20+
clean:
21+
rm -fr ${BUILDDIR}/
22+
find concurrency/locale -name django.mo | xargs rm -f
23+
1724
.PHONY: docs

0 commit comments

Comments
 (0)