Move to pytest-cov. Fix issue #458.
This commit is contained in:
Родитель
17540635be
Коммит
82a1ac141e
|
@ -4,6 +4,7 @@ branch = True
|
|||
data_file = /tmp/.coverage
|
||||
|
||||
[report]
|
||||
show_missing = True
|
||||
omit =
|
||||
tests/*
|
||||
*migrations*
|
||||
|
|
6
bin/run
6
bin/run
|
@ -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
|
||||
;;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче