summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Ignatov <aignatov@mirantis.com>2014-02-09 21:15:08 +0400
committerAlexander Ignatov <aignatov@mirantis.com>2014-02-09 23:19:22 +0400
commit50c348a312d48ca901ab8e095962b4b0c413aa06 (patch)
treea1f15a80de950f2057b6dce06bf26755ea782bb2
parentf3df0845db4d09b5c8bf0172427ec00cefecd5f4 (diff)
downloadpython-saharaclient-50c348a312d48ca901ab8e095962b4b0c413aa06.tar.gz
Some improvements in tox.ini
* Removed all code related to nosetests env * Added coverage command to testenv Change-Id: I485f5b2c45ccafa7bdbb5aef0e796f53d7243270
-rw-r--r--.gitignore1
-rw-r--r--tox.ini9
2 files changed, 2 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore
index 0600089..22d7ef8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,3 +31,4 @@ ChangeLog
cscope.out
.testrepository
AUTHORS
+cover
diff --git a/tox.ini b/tox.ini
index 8eb3316..c6f45d6 100644
--- a/tox.ini
+++ b/tox.ini
@@ -9,20 +9,13 @@ install_command = pip install -U {opts} {packages}
sitepackages = True
setenv =
VIRTUAL_ENV={envdir}
- NOSE_WITH_OPENSTACK=1
- NOSE_OPENSTACK_COLOR=1
- NOSE_OPENSTACK_RED=0.05
- NOSE_OPENSTACK_YELLOW=0.025
- NOSE_OPENSTACK_SHOW_ELAPSED=1
- NOSE_OPENSTACK_STDOUT=1
- NOSE_XUNIT=1
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py test --slowest --testr-args="{posargs}"
[testenv:cover]
-setenv = NOSE_WITH_COVERAGE=1
+commands = python setup.py test --coverage --testr-args='{posargs}'
[tox:jenkins]
sitepackages = False