summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorJoshua Powers <josh.powers@canonical.com>2017-09-01 16:35:01 -0600
committerChad Smith <chad.smith@canonical.com>2017-09-01 16:36:32 -0600
commit653c0b4cfc6325382a3fb93a2185ab74f9cee62a (patch)
tree2b0af0a6bdd9a2944f3a3e9763b2893f679e6313 /tox.ini
parentfa266bf8818a08e37cd32a603d076ba2db300124 (diff)
downloadvyos-cloud-init-653c0b4cfc6325382a3fb93a2185ab74f9cee62a.tar.gz
vyos-cloud-init-653c0b4cfc6325382a3fb93a2185ab74f9cee62a.zip
tox: add nose timer output
This adds the output of the nose timer plugin to the py3 environment to tox. This will print out the 10 longest running tests and automatically turn tests longer than 1 second "red" after the coverage output.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini11
1 files changed, 7 insertions, 4 deletions
diff --git a/tox.ini b/tox.ini
index ec96e859..72de9830 100644
--- a/tox.ini
+++ b/tox.ini
@@ -30,10 +30,13 @@ commands = {envpython} -m pylint {posargs:cloudinit}
[testenv:py3]
basepython = python3
-deps = -r{toxinidir}/test-requirements.txt
-commands = {envpython} -m nose {posargs:--with-coverage \
- --cover-erase --cover-branches --cover-inclusive \
- --cover-package=cloudinit tests/unittests cloudinit}
+deps =
+ nose-timer
+ -r{toxinidir}/test-requirements.txt
+commands = {envpython} -m nose --with-timer --timer-top-n 10 \
+ {posargs:--with-coverage --cover-erase --cover-branches \
+ --cover-inclusive --cover-package=cloudinit \
+ tests/unittests cloudinit}
[testenv:py27]
basepython = python2.7