Merge "Initiate packetization of Testing reporting"
[releng.git] / utils / test / testapi / tox.ini
1 # Tox (http://tox.testrun.org/) is a tool for running tests
2 # in multiple virtualenvs. This configuration file will run the
3 # test suite on all supported python versions. To use it, "pip install tox"
4 # and then run "tox" from this directory.
5
6 [tox]
7 envlist = pep8,py27
8 skipsdist = True
9 sitepackages = True
10
11 [testenv]
12 usedevelop = True
13 install_command = pip install -U {opts} {packages}
14 deps =
15   -rrequirements.txt
16   -rtest-requirements.txt
17 commands=
18   py.test \
19   --basetemp={envtmpdir} \
20   --cov \
21   --cov-report term-missing \
22   --cov-report xml \
23   {posargs}
24 setenv=
25   HOME = {envtmpdir}
26   PYTHONPATH = {toxinidir}
27
28 [testenv:pep8]
29 deps = flake8
30 commands = flake8 {toxinidir}
31
32 [flake8]
33 # H803 skipped on purpose per list discussion.
34 # E123, E125 skipped as they are invalid PEP-8.
35
36 show-source = True
37 ignore = E123,E125,H803,E501
38 builtins = _
39 exclude = build,dist,doc,legacy,.eggs,.git,.tox,.venv,testapi_venv,venv
40
41 [pytest]
42 testpaths = opnfv_testapi/tests
43 python_functions = test_*