f7276b448fc74e093be6d21bcb842cb41e9a27e6
[testsuite/python-testing-utils.git] / robotframework-onap / tox.ini
1 [tox]
2 envlist = py3,pep8,pylint,py27
3 modules =
4   ONAPLibrary
5   vcpeutils
6
7 [testenv]
8 usedevelop = True
9 deps =
10   -r{toxinidir}/requirements.txt
11   -r{toxinidir}/test-requirements.txt
12
13 [testenv:pep8]
14 basepython = python3
15 changedir = {toxinidir}
16 commands =
17   flake8 --max-line-length 120 {[tox]modules}
18 install_command = pip3 install {opts} {packages}
19
20 [testenv:pylint]
21 basepython = python3
22 deps =
23     pyflakes
24     pylint
25 commands =
26     pylint -f parseable --ignore-imports=y --disable=locally-disabled --max-line-length 120 --exit-zero -ry {[tox]modules}
27 install_command = pip3 install {opts} {packages}
28
29 [testenv:py3]
30 basepython = python3
31 commands = nosetests --with-xunit \
32   --all-modules \
33   --with-coverage \
34   --cover-tests \
35   --cover-package=. \
36   --cover-xml \
37   --cover-html \
38   tests
39 install_command = pip3 install {opts} {packages}
40
41 [testenv:py27]
42 basepython = python2.7
43 commands =
44   nosetests --all-modules tests
45 install_command = pip install {opts} {packages}