X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=robotframework-onap%2Ftox.ini;h=34e0b7e45e4067af5fb4bb83a306d87106345197;hb=refs%2Fheads%2Fmaster;hp=42183a7814c782f3ee5e03baffd2f39c51764b47;hpb=d050b58d3fde6a049104d8287f8d8cfbe3013d5d;p=testsuite%2Fpython-testing-utils.git diff --git a/robotframework-onap/tox.ini b/robotframework-onap/tox.ini index 42183a7..953b640 100644 --- a/robotframework-onap/tox.ini +++ b/robotframework-onap/tox.ini @@ -1,12 +1,37 @@ -# Tox (https://tox.readthedocs.io/) is a tool for running tests -# in multiple virtualenvs. This configuration file will run the -# test suite on all supported python versions. To use it, "pip install tox" -# and then run "tox" from this directory. - [tox] -envlist = py27 +envlist = pep8,pylint,py3 +distdir = {toxinidir}/dist +modules = + ONAPLibrary + vcpeutils [testenv] -commands = {envpython} setup.py test deps = + -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt +install_command = pip install {opts} {packages} + +[testenv:pep8] +basepython = python3.8 +changedir = {toxinidir} +commands = + flake8 --max-line-length 120 {[tox]modules} + +[testenv:pylint] +basepython = python3.8 +deps = + pyflakes + pylint +commands = + pylint -f parseable --ignore-imports=y --disable=locally-disabled --max-line-length 120 --exit-zero -ry {[tox]modules} +[testenv:py3] +basepython = python3.8 +commands = nosetests --with-xunit \ + --all-modules \ + --with-coverage \ + --cover-tests \ + --cover-package=ONAPLibrary,vcpeutils \ + --cover-xml \ + --cover-html \ + tests