X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=smo-install%2Ftest%2Fpythonsdk%2Ftox.ini;h=53b7696f4624156d503d0cce9ff3ae686e25e6c3;hb=1fd14f960d45794d4b87135ba2e2e72244987f03;hp=3e712eebd16a19744034731b109b328d0a6f3bcb;hpb=6c7e3c3c5e51182a891a2a21676f1cc2646ba484;p=it%2Fdep.git diff --git a/smo-install/test/pythonsdk/tox.ini b/smo-install/test/pythonsdk/tox.ini index 3e712eeb..53b7696f 100644 --- a/smo-install/test/pythonsdk/tox.ini +++ b/smo-install/test/pythonsdk/tox.ini @@ -1,5 +1,5 @@ [tox] -#envlist = pylint,pydocstyle,unit-tests,oran-tests +envlist = pylint,pydocstyle,unit-tests,oran-tests skipsdist=True [testenv] @@ -8,20 +8,21 @@ deps = pytest==6.2.5 pytest-cov==2.10.1 pydocstyle==5.1.1 - onapsdk==9.0.0 + onapsdk==9.4.0 waiting==1.4.1 + markupsafe==2.0.1 passenv = * [testenv:unit-tests] basepython=python3.8 -commands = pytest -v --junit-xml=unit-tests.xml unit-tests/ +commands = pytest -v --junit-xml=reports/junit/unit-tests.xml unit-tests/ setenv = PYTHONPATH = $PYTHONPATH:{toxinidir}/src ONAP_PYTHON_SDK_SETTINGS=oransdk.configuration.global_settings [testenv:pylint] basepython=python3.8 -commands = pylint --disable=invalid-name,line-too-long,too-few-public-methods,import-error,unnecessary-lambda src/ +commands = pylint --ignore-imports=yes --min-similarity-lines=5 --disable=invalid-name,line-too-long,too-few-public-methods,import-error,unnecessary-lambda,too-many-arguments src/ setenv = PYTHONPATH = $PYTHONPATH:{toxinidir}/src ONAP_PYTHON_SDK_SETTINGS=orantests.configuration.settings @@ -35,7 +36,14 @@ setenv = [testenv:oran-tests] basepython=python3.8 -commands = pytest -v --junit-xml=oran-tests.xml src/orantests/ +commands = pytest -v --junit-xml=reports/junit/oran-tests.xml src/orantests/oran_tests setenv = PYTHONPATH = $PYTHONPATH:{toxinidir}/src ONAP_PYTHON_SDK_SETTINGS=orantests.configuration.settings + +[testenv:ns-tests] +basepython=python3.8 +commands = pytest -v --junit-xml=reports/junit/nt-tests.xml src/orantests/network_slicing +setenv = + PYTHONPATH = $PYTHONPATH:{toxinidir}/src + ONAP_PYTHON_SDK_SETTINGS=orantests.configuration.settings \ No newline at end of file