From 526e9f17197a6dda882d6c47c9974cea2518af1b Mon Sep 17 00:00:00 2001 From: Richard Frank Date: Wed, 11 Nov 2015 22:18:31 -0500 Subject: [PATCH 1/2] TST: Limit the timer report to just the 15 longest tests The default of all the tests is pretty spammy. --- .travis.yml | 2 +- setup.cfg | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4d70f7d6..260ae83b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,6 +28,6 @@ before_script: - pip freeze | sort - "flake8 zipline tests" script: - - nosetests --with-timer --exclude=^test_examples --with-coverage --cover-package=zipline + - nosetests --with-timer --exclude=^test_examples --with-coverage --cover-package=zipline --timer-top-n=15 after_success: - coveralls diff --git a/setup.cfg b/setup.cfg index 86507976..a1ce13a4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,6 +3,7 @@ verbosity=2 detailed-errors=1 with-ignore-docstrings=1 with-timer=1 +timer-top-n=15 [metadata] description-file = README.rst From f3f5d8a425670bb9dedd391b406c28360f9f50fb Mon Sep 17 00:00:00 2001 From: Richard Frank Date: Fri, 13 Nov 2015 09:44:42 -0500 Subject: [PATCH 2/2] DOC: Updated whatsnew --- docs/source/whatsnew/0.8.4.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/whatsnew/0.8.4.txt b/docs/source/whatsnew/0.8.4.txt index fb053b13..1938ca2a 100644 --- a/docs/source/whatsnew/0.8.4.txt +++ b/docs/source/whatsnew/0.8.4.txt @@ -67,3 +67,4 @@ Miscellaneous * Adds :func:`~zipline.utils.test_utils.subtest` decorator for creating subtests without ``nose_parameterized.expand`` which bloats the test output (:issue:`833`). +* Limits timer report in test output to 15 longest tests (:issue:`838`).