Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
Move to pytest-cov. Fix issue #458.
Browse files Browse the repository at this point in the history
  • Loading branch information
jezdez committed May 15, 2017
1 parent 1754063 commit 91fad02
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ branch = True
data_file = /tmp/.coverage

[report]
show_missing = True
omit =
tests/*
*migrations*
Expand Down
6 changes: 1 addition & 5 deletions bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,9 @@ case $1 in
--pidfile ${MONITOR_PIDFILE}
;;
test)
coverage erase
coverage run -m py.test
coverage report -m
pytest
if [[ ! -z ${CI+check} ]]; then
# submit coverage
coverage xml
env
bash <(curl -s https://codecov.io/bash) -s /tmp
fi
;;
Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[pytest]
norecursedirs = .git .* static
addopts = -rsxX --showlocals --tb=native --nomigrations --flake8 --staticfiles
addopts = -rsxX --showlocals --tb=native --nomigrations --flake8 --staticfiles --cov-report term --cov-report xml --cov atmo
DJANGO_SETTINGS_MODULE = atmo.settings
DJANGO_CONFIGURATION = Test
blockade = True
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -386,3 +386,6 @@ django-celery-monitor==1.1.0 \
--hash=sha256:bb7fccbe73a9eef0d51afad013ebf7603a6a217dd27d8f8dc71a3cad44aef99b
django-flat-responsive==1.3.0 \
--hash=sha256:340234bb1351204625ab9f3b61696e258d8fae169628ad2ccb47cc898732efa7
pytest-cov==2.5.1 \
--hash=sha256:03aa752cf11db41d281ea1d807d954c4eda35cfa1b21d6971966cc041bbf6e2d \
--hash=sha256:890fe5565400902b0c78b5357004aab1c814115894f4f21370e2433256a3eeec

0 comments on commit 91fad02

Please sign in to comment.