Add ORAN Python SDK first draft
[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.0.0
12
13 passenv = *
14
15 [testenv:unit-tests]
16 basepython=python3.8
17 commands = pytest -v --junit-xml=unit-tests.xml unit-tests/
18 setenv =
19     PYTHONPATH = $PYTHONPATH:{toxinidir}/src
20     ONAP_PYTHON_SDK_SETTINGS=oransdk.configuration.global_settings
21
22 [testenv:oran-tests]
23 basepython=python3.8
24 commands = pytest -v --junit-xml=oran-tests.xml src/orantests/
25 setenv =
26     PYTHONPATH = $PYTHONPATH:{toxinidir}/src
27     ONAP_PYTHON_SDK_SETTINGS=orantests.configuration.settings
28
29
30 [testenv:pylint]
31 basepython=python3.8
32 commands = pylint --disable=invalid-name src/
33
34 [testenv:pydocstyle]
35 basepython=python3.8
36 commands = pydocstyle src/