Skip to content

Commit 6ec91b0

Browse files
committed
Add the usage of --setup-show in conjunction with --querycount to the docs
1 parent 843a9e5 commit 6ec91b0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/usage.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ Fail tests that render templates which make use of invalid template variables.
3535
Show a list of top N tests which executed most queries. Use `--querycount=0`
3636
to display a list of all tests ordered by the number of queries executed.
3737

38+
Using it in conjunction with `--setup-show` will display the number of
39+
queries executed by each fixture (when the number of queries executed by the
40+
fixture is greater than zero).
41+
3842
Running tests in parallel with pytest-xdist
3943
-------------------------------------------
4044
pytest-django supports running tests on multiple processes to speed up test

0 commit comments

Comments
 (0)