summaryrefslogtreecommitdiffstats
path: root/newton/tox.ini
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-11-14 12:24:57 -0800
committerVictor Morales <victor.morales@intel.com>2017-11-14 12:24:57 -0800
commit569d05a52d0f034b8cd082f6b9e1049898a39b0e (patch)
tree69774fcd68ec02a4c7c3e16b5955bd53f490aa16 /newton/tox.ini
parent2f6d5d1ee4303850b4455e4da7864ef7710e8b5f (diff)
Separate test modules from requirements.txt
The modules required for unit tests can be included in another file, this helps during the packaging process to avoid the addition of non-required dependencies. Change-Id: I3d1dc0c265a26e22be66d261f2de2ae939a1d6f8 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: MULTICLOUD-83
Diffstat (limited to 'newton/tox.ini')
-rw-r--r--newton/tox.ini8
1 files changed, 7 insertions, 1 deletions
diff --git a/newton/tox.ini b/newton/tox.ini
index 71a8ff75..d5eb878e 100644
--- a/newton/tox.ini
+++ b/newton/tox.ini
@@ -6,7 +6,13 @@ skipsdist = true
downloadcache = ~/cache/pip
[testenv]
-deps = -r{toxinidir}/requirements.txt
+passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
+deps =
+ -r{toxinidir}/requirements.txt
+ -r{toxinidir}/test-requirements.txt
commands =
coverage run --branch manage.py test
+
+[testenv:cover]
+commands =
coverage report --omit=".tox/*,*tests*,*__init__.py" --fail-under=30