robot tcs, test charts, robot container added
[ta/cloudtaf.git] / tox.ini
1 # Copyright 2019 Nokia
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 [tox]
16 setupdir = {toxinidir}/libraries
17 envlist = py27, pylint, check-requirements
18
19 [testenv]
20 setenv =
21    COVERAGE_FILE=.coverage.{envname}
22
23 deps =
24     mock
25     pytest < 4.0
26     pytest-pep8
27     pytest-cov
28     more-itertools < 6.0.0
29     -r{toxinidir}/requirements.txt
30
31 commands = py.test -v \
32            --basetemp={envtmpdir} \
33            --pep8 \
34            --cov . \
35            --cov-branch \
36            --cov-report term-missing \
37            --cov-report html:coverage-html-{envname} \
38            --ignore libraries/common/test_constants.py \
39            --ignore testcases/pm-support/misc \
40            {posargs:.}
41
42 [pytest]
43 cache_dir = .pytest-cache
44 pep8maxlinelength = 120
45
46 [testenv:pylint]
47 basepython = python2.7
48 deps =
49     mock
50     pytest < 3.0
51     pytest-pylint
52     pylint < 2.0
53     -r{toxinidir}/requirements.txt
54
55 commands = py.test -m pylint -v \
56            --pylint \
57            --pylint-rcfile={toxinidir}/.pylintrc \
58            --ignore resources/system_testing/latency \
59            --ignore libraries/common/test_constants.py \
60            --ignore testcases/pm-support/misc \
61            {posargs:.}
62
63
64 [testenv:rfcli]
65 basepython = python2.7
66
67 passenv =
68    DISPLAY
69    HOME
70
71 deps =
72     -r{toxinidir}/requirements.txt
73
74 commands =
75     rfcli --pythonpath {toxinidir}:{toxinidir}/resources \
76     --rfcli-no-pythonpath \
77     {posargs}
78
79 [testenv:check-requirements]
80 basepython = python2.7
81 deps =
82     -r{toxinidir}/requirements.txt
83     more-itertools < 6.0.0
84     requirements-tools==1.1.2
85     pytest < 4.0
86
87 commands = check-requirements
88
89 [testenv:freeze]
90 basepython = python2.7
91
92 deps = virtualenvrunner>=1.0
93
94 commands = create_virtualenv --recreate \
95                              --requirements {toxinidir}/requirements-minimal.txt \
96                              --save-freeze-path {toxinidir}/requirements.txt