Set poetry run pytest --cov=jack -vv

============================= test session starts ==============================
platform linux -- Python 3.10.6, pytest-7.2.0, pluggy-1.0.0 -- /home/fred/.cache/pypoetry/virtualenvs/jack-vJTRSbf8-py3.10/bin/python
cachedir: .pytest_cache
rootdir: /home/fred/Sources/jack
plugins: cov-4.0.0
collecting ... collected 5 items

tests/test_models.py::test_article_metadata PASSED                       [ 20%]
tests/test_models.py::test_article_content PASSED                        [ 40%]
tests/test_models.py::test_article_published_date PASSED                 [ 60%]
tests/test_models.py::test_article_fenced_code PASSED                    [ 80%]
tests/test_models.py::test_site_append_article PASSED                    [100%]

---------- coverage: platform linux, python 3.10.6-final-0 -----------
Name               Stmts   Miss  Cover
--------------------------------------
jack/__init__.py       0      0   100%
jack/models.py        47      2    96%
--------------------------------------
TOTAL                 47      2    96%

============================== 5 passed in 0.14s =============================== to call poetry + pytest with coverage
This commit is contained in:
Fred Pauchet 2023-01-02 22:10:36 +01:00
parent b9b084c03c
commit 182e563df6
1 changed files with 1 additions and 1 deletions

View File

@ -2,4 +2,4 @@
.PHONY: tests
tests:
poetry run pytest --cov=jack
poetry run pytest --cov=jack -vv