Skip to content
Snippets Groups Projects
Verified Commit 8416c178 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Run coverage measurements while testing.

parent 03e29c36
No related branches found
No related tags found
No related merge requests found
...@@ -68,6 +68,7 @@ pytest = "^5.3" ...@@ -68,6 +68,7 @@ pytest = "^5.3"
pytest-django = "^3.7" pytest-django = "^3.7"
pytest-django-testing-postgresql = "^0.1" pytest-django-testing-postgresql = "^0.1"
tox = "^3.14" tox = "^3.14"
pytest-cov = "^2.8"
[build-system] [build-system]
requires = ["poetry>=0.12"] requires = ["poetry>=0.12"]
......
...@@ -5,7 +5,7 @@ skipsdist = True ...@@ -5,7 +5,7 @@ skipsdist = True
whitelist_externals = poetry whitelist_externals = poetry
pytest pytest
skip_install = true skip_install = true
commands = pytest --pylama biscuit/core/ commands = pytest --pylama --cov=biscuit biscuit/core/
[pylama] [pylama]
linters = pycodestyle,pyflakes,radon linters = pycodestyle,pyflakes,radon
...@@ -26,3 +26,7 @@ django_settings_module = biscuit.core.settings ...@@ -26,3 +26,7 @@ django_settings_module = biscuit.core.settings
[pytest] [pytest]
DJANGO_SETTINGS_MODULE = biscuit.core.settings DJANGO_SETTINGS_MODULE = biscuit.core.settings
[coverage:run]
omit = */migrations/*
*/tests/*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment