Merge "Removal of DMAAP configuration for A1 PMS"
[it/dep.git] / smo-install / test / pythonsdk / tox.ini
1 [tox]
2 envlist = pylint,pydocstyle,unit-tests,oran-tests
3 skipsdist=True
4
5 [testenv]
6 deps =
7     pylint==2.4.4
8     pytest==6.2.5
9     pytest-cov==2.10.1
10     pydocstyle==5.1.1
11     onapsdk==9.4.0
12     waiting==1.4.1
13     markupsafe==2.0.1
14 passenv = *
15
16 [testenv:unit-tests]
17 basepython=python3.8
18 commands = pytest -v --junit-xml=reports/junit/unit-tests.xml unit-tests/
19 setenv =
20     PYTHONPATH = $PYTHONPATH:{toxinidir}/src
21     ONAP_PYTHON_SDK_SETTINGS=oransdk.configuration.global_settings
22
23 [testenv:pylint]
24 basepython=python3.8
25 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/
26 setenv =
27     PYTHONPATH = $PYTHONPATH:{toxinidir}/src
28     ONAP_PYTHON_SDK_SETTINGS=orantests.configuration.settings
29
30 [testenv:pydocstyle]
31 basepython=python3.8
32 commands = pydocstyle src/
33 setenv =
34     PYTHONPATH = $PYTHONPATH:{toxinidir}/src
35     ONAP_PYTHON_SDK_SETTINGS=orantests.configuration.settings
36
37 [testenv:oran-tests]
38 basepython=python3.8
39 commands = pytest -v --junit-xml=reports/junit/oran-tests.xml src/orantests/oran_tests
40 setenv =
41     PYTHONPATH = $PYTHONPATH:{toxinidir}/src
42     ONAP_PYTHON_SDK_SETTINGS=orantests.configuration.settings
43
44 [testenv:ns-tests]
45 basepython=python3.8
46 commands = pytest -v --junit-xml=reports/junit/nt-tests.xml src/orantests/network_slicing
47 setenv =
48     PYTHONPATH = $PYTHONPATH:{toxinidir}/src
49     ONAP_PYTHON_SDK_SETTINGS=orantests.configuration.settings