Skip to content

Commit 39ebae9

Browse files
committed
tox: list the time taken to run each test
Output the time required to setup, call and teardown each test. We only report times which take longer than 0.05 seconds. Signed-off-by: Sachin Prabhu <[email protected]>
1 parent bd02302 commit 39ebae9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ deps =
1414
pytest-randomly
1515
iso8601
1616
smbprotocol
17-
commands = pytest -vrfEsxXpP testcases/
17+
commands = pytest -vrfEsxXpP testcases/ --durations=0
1818

1919
[testenv:pytest-unprivileged]
2020
deps =
@@ -23,7 +23,7 @@ deps =
2323
pytest-randomly
2424
iso8601
2525
smbprotocol
26-
commands = pytest -vrfEsxXpP -k 'not privileged' testcases/
26+
commands = pytest -vrfEsxXpP -k 'not privileged' testcases/ --durations=0
2727

2828
[testenv:sanity]
2929
deps =

0 commit comments

Comments
 (0)