From e688b6d62b642db90ee1cda8ffffa047fbd61f29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Kr=C4=8Dek?= Date: Sun, 13 Oct 2024 18:16:28 +0200 Subject: [PATCH] Add coverage tests --- test-requirements.txt | 3 ++- tox.ini | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 8169ee8..8c42ee1 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,4 +2,5 @@ codespell flake8 bandit pytest -stestr \ No newline at end of file +stestr +coverage \ No newline at end of file diff --git a/tox.ini b/tox.ini index 1456a84..bf02581 100644 --- a/tox.ini +++ b/tox.ini @@ -16,4 +16,9 @@ commands = bandit -r telegram_downloader_bot/ commands = codespell telegram_downloader_bot/ [testenv:unit] -commands = stestr run --test-path tests/ \ No newline at end of file +commands = stestr run --test-path tests/ + +[testenv:coverage] +commands = + coverage run -m unittest discover + coverage report -m \ No newline at end of file