[testenv:docs]
basepython = python3
-deps =
+deps =
sphinx
sphinx-rtd-theme
sphinxcontrib-httpdomain
recommonmark
lfdocs-conf
-
+
commands =
sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
echo "Generated docs available in {toxinidir}/docs/_build/html"
whitelist_externals = sh
commands = sh -c 'pip freeze > requirements.txt'
+[testenv:coverage]
+deps =
+ pytest
+ coverage
+commands = pytest --cov=o-ran-sc_smo-ves --cov-report=xml --cov-config=tox.ini --cov-branch
[coverage:run]
# exclude test folder from coverage report
pytest-cov
requests
jsonschema
- kafka-python
- gevent
+ kafka-python
+ gevent
PyYAML
pytest-mock
flask
# 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
\ No newline at end of file
+ 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