aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authormichal.jagiello@t-mobile.pl <michal.jagiello@t-mobile.pl>2023-11-02 18:04:59 +0000
committerMichal Jagiello <michal.jagiello@t-mobile.pl>2023-11-02 19:09:26 +0100
commit10cc190bc21f3f72814ac818b180c2bb06029981 (patch)
treed0594d1ec1a92cb68d20c0db9af90a0bba5030c5 /tox.ini
parent4bdb9d7a9e6b0087332a61125d544a95e695cb8b (diff)
Sonarqube fixes
Code was linted using sonarqube and fixes was made Issue-ID: TEST-404 Change-Id: Id5874b8f4f392228743cd12657a8efcb1ded0b5b Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini8
1 files changed, 7 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index d0d7292..913e8db 100644
--- a/tox.ini
+++ b/tox.ini
@@ -2,7 +2,13 @@
envlist = py38,py39,pylint,pydocstyle,bandit
[testenv]
-commands = pytest tests/
+commands = pytest tests/ --maxfail=1 --cov-fail-under=98 --verbose --doctest-modules
+deps = -rtest-requirements.txt
+setenv = PYTHONPATH = {toxinidir}/src
+
+[testenv:coverage]
+skip_install = True
+commands = pytest tests/ --cov=src/onapsdk --cov-report term-missing --cov-report xml
deps = -rtest-requirements.txt
setenv = PYTHONPATH = {toxinidir}/src