From ec204f851648023d9831d73676b3b4b718b83869 Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Mar 03 2018 01:25:28 +0000 Subject: More verbose and detailed pytest output Tune pytest options: - more verbose output that may help to debug failures - show slowest tests duration, we would like to optimize these - document all options Signed-off-by: Nir Soffer --- diff --git a/pytest.ini b/pytest.ini index 73176d5..bb17bd5 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,7 @@ [pytest] -# Note: we must use /var/tmp as sanlock uses direct I/O. -addopts = -rxs --basetemp=/var/tmp/sanlock +# Notes: +# --basetemp: we must use /var/tmp as sanlock uses direct I/O. +# -vv: increasing verbosify twice shows more detailed failures tracebacks. +# -rxs: show extra test summary: (s)skipped, (x)failed +# --durations: show slowest test duration +addopts = -rxs -vv --basetemp=/var/tmp/sanlock --durations=10