From 52c816c1bd0f2c1196077bc3aecca26f330ed746 Mon Sep 17 00:00:00 2001 From: sahil-xoriant Date: Mon, 5 Dec 2022 18:15:33 +0530 Subject: [PATCH] Unbale to run tox -e coverage SMO-111 Signed-off-by: sahil-xoriant Change-Id: I01b59001acc333956476afd4a05507d6961dae38 --- tox.ini | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 1fde1fb..3f856bc 100644 --- a/tox.ini +++ b/tox.ini @@ -35,7 +35,19 @@ commands = sh -c 'pip freeze > requirements.txt' deps = pytest coverage -commands = pytest --cov=o-ran-sc_smo-ves --cov-report=xml --cov-config=tox.ini --cov-branch + pytest-cov + requests + jsonschema + kafka-python + gevent + PyYAML + pytest-mock + flask + confluent-kafka + future + mock + requests_mock +commands = pytest --ignore=functionaltest --ignore=collector --cov=o-ran-sc_smo-ves --cov-report=xml --cov-config=tox.ini --cov-branch [coverage:run] # exclude test folder from coverage report @@ -67,4 +79,4 @@ deps= # which streams the logs as they come in, rather than saving them # all for the end of tests commands = - pytest --ignore=functionaltest --ignore=collector --cov {toxinidir} --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70 --junitxml={toxinidir}/tmp/tests.xml + pytest --ignore=functionaltest --ignore=collector --cov {toxinidir} --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70 --junitxml={toxinidir}/tmp/tests.xml \ No newline at end of file -- 2.16.6