feature 8029 change RO to python3. Using vim plugins
[osm/RO.git] / RO / osm_ro / wim / tox.ini
1 # This tox file allows the devs to run unit tests only for this subpackage.
2 # In order to do so, cd into the directory and run `tox`
3
4 [tox]
5 minversion = 1.8
6 envlist = py27,flake8,radon
7 skipsdist = True
8
9 [testenv]
10 passenv = *_DB_*
11 setenv =
12 PATH = {env:PATH}:{toxinidir}/../../database_utils
13 DBUTILS = {toxinidir}/../../database_utils
14 changedir = {toxinidir}
15 commands =
16 nosetests -v -d {posargs:tests}
17 deps =
18 WebTest
19 logging
20 bottle
21 coverage
22 jsonschema
23 mock
24 mysqlclient
25 nose
26 six
27 PyYaml
28 paramiko
29 ipdb
30 requests
31
32 [testenv:flake8]
33 changedir = {toxinidir}
34 deps = flake8
35 commands = flake8 {posargs:.}
36
37 [testenv:radon]
38 changedir = {toxinidir}
39 deps = radon
40 commands =
41 radon cc --show-complexity --total-average {posargs:.}
42 radon mi -s {posargs:.}
43
44 [coverage:run]
45 branch = True
46 source = {toxinidir}
47 omit =
48 tests
49 tests/*
50 */test_*
51 .tox/*
52
53 [coverage:report]
54 show_missing = True
55
56 [flake8]
57 exclude =
58 .tox