summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2016-05-12 14:29:50 -0700
committerJoshua Harlow <harlowja@gmail.com>2016-05-12 14:29:50 -0700
commit75211bdfd58b3209455c88ab00c96e9e7c7acecc (patch)
tree431b8b90ba53ab31f2736c6d8aa9d64a46f223ba
parent78cbc764486060928541b9dee6ce5779e622d1fa (diff)
downloadvyos-cloud-init-75211bdfd58b3209455c88ab00c96e9e7c7acecc.tar.gz
vyos-cloud-init-75211bdfd58b3209455c88ab00c96e9e7c7acecc.zip
Enable nose-timer and always show top 10 slow tests
-rw-r--r--test-requirements.txt1
-rw-r--r--tox.ini4
2 files changed, 3 insertions, 2 deletions
diff --git a/test-requirements.txt b/test-requirements.txt
index 2ab53707..88a67a26 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -2,6 +2,7 @@
httpretty>=0.7.1
mock
nose
+nose-timer
# Only really needed on older versions of python
contextlib2
diff --git a/tox.ini b/tox.ini
index dafaaf6d..d051f2ac 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,7 +3,7 @@ envlist = py27,py3,flake8
recreate = True
[testenv]
-commands = python -m nose {posargs:tests}
+commands = python -m nose --with-timer --timer-top-n 10 {posargs:tests}
deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
@@ -19,7 +19,7 @@ setenv =
LC_ALL = en_US.utf-8
[testenv:py26]
-commands = nosetests {posargs:tests}
+commands = nosetests --with-timer --timer-top-n 10 {posargs:tests}
deps =
contextlib2
httpretty>=0.7.1