Skip to content

Commit

Permalink
Add coverage combine and report to tox.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve committed Oct 7, 2021
1 parent 76d8fef commit 8815009
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 2 additions & 0 deletions tests/app/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
SECRET_KEY = "bootstrap3isawesome"

USE_TZ = True

DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}}

INSTALLED_APPS = (
Expand Down
16 changes: 11 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ envlist =
{py38}-{django31,django32,django40,djangomain}
{py39}-{django31,django32,django40,djangomain}
{py310}-{django32,django40,djangomain}
coverage
check-description
check-manifest

Expand All @@ -16,6 +17,8 @@ whitelist_externals =
make
setenv =
PYTHONWARNINGS=all
commands_pre =
{envpython} -m pip install --upgrade pip
commands =
coverage run --parallel-mode manage.py test -v1 --noinput
deps =
Expand All @@ -27,6 +30,13 @@ deps =
coverage[toml]
coveralls

[testenv:coverage]
commands =
coverage combine
coverage report
; coverage erase
depends = py36,py37,py38,py39,py310

[testenv:lint]
commands =
make lint
Expand All @@ -39,9 +49,6 @@ commands =
deps =
-r{toxinidir}/docs/requirements.txt

# Packaging checks.
################################################################################

# Builds the package and runs 'twine check' to ensure it will render
# correctly when uploaded to the Python Package Index, or fail if not.
[testenv:check-description]
Expand All @@ -51,8 +58,7 @@ changedir = {toxinidir}
skip_install = true
deps =
twine
# In this environment we always want latest wheel in addition to
# latest pip.
# In this environment we always want latest setuptools and wheel in addition to latest pip.
commands_pre =
{envpython} -m pip install --upgrade pip setuptools wheel
commands =
Expand Down

0 comments on commit 8815009

Please sign in to comment.