Module: check_mk
Branch: master
Commit: f0f606fbc93515adb0f3a21c74d308fdcc94320e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f0f606fbc93515…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jan 14 07:28:02 2019 +0100
Make pytest show the 10 slowest tests after completion
Change-Id: Id3831af5943306b978db32dc99c5ccc7b3077ed8
---
pytest.ini | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pytest.ini b/pytest.ini
index 88b64f4..7e85fa6 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -2,7 +2,8 @@
testpaths = tests
# -p no:cacheprovider -> Disable caching. This is needed to make the
# integration tests work which are executed as site user.
-addopts = -p no:stepwise -p no:cacheprovider -rs -v --maxfail=1
+# --durations=10: Show the 10 slowest tests
+addopts = -p no:stepwise -p no:cacheprovider -rs -v --maxfail=1 --durations=10
# Register some markers to classify the tests
# TODO: Are they used? Clean them up
markers =