Skip to content

Commit

Permalink
tox: list the time taken to run each test
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
spuiuk committed Jul 2, 2024
1 parent bd02302 commit 39ebae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ deps =
pytest-randomly
iso8601
smbprotocol
commands = pytest -vrfEsxXpP testcases/
commands = pytest -vrfEsxXpP testcases/ --durations=0

[testenv:pytest-unprivileged]
deps =
Expand All @@ -23,7 +23,7 @@ deps =
pytest-randomly
iso8601
smbprotocol
commands = pytest -vrfEsxXpP -k 'not privileged' testcases/
commands = pytest -vrfEsxXpP -k 'not privileged' testcases/ --durations=0

[testenv:sanity]
deps =
Expand Down

0 comments on commit 39ebae9

Please sign in to comment.