blob: 29f1a8f7088f28518327c9a1a2a4c6bc45ff03b8 [file] [log] [blame]
Anderson Bravalheri0446cd52018-08-17 15:26:19 +01001# 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]
5minversion = 1.8
6envlist = py27,flake8,radon
7skipsdist = True
8
9[testenv]
10passenv = *_DB_*
11setenv =
12 PATH = {env:PATH}:{toxinidir}/../../database_utils
13 DBUTILS = {toxinidir}/../../database_utils
14changedir = {toxinidir}
15commands =
16 nosetests -v -d {posargs:tests}
17deps =
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]
33changedir = {toxinidir}
34deps = flake8
35commands = flake8 {posargs:.}
36
37[testenv:radon]
38changedir = {toxinidir}
39deps = radon
40commands =
41 radon cc --show-complexity --total-average {posargs:.}
42 radon mi -s {posargs:.}
43
44[coverage:run]
45branch = True
46source = {toxinidir}
47omit =
48 tests
49 tests/*
50 */test_*
51 .tox/*
52
53[coverage:report]
54show_missing = True
55
56[flake8]
57exclude =
58 .tox