Skip to content

Commit 37c5c8b

Browse files
committed
Add documenation for "--querycount" parameter
1 parent 4562abe commit 37c5c8b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/usage.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ Additional command line options
2929
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3030
Fail tests that render templates which make use of invalid template variables.
3131

32+
33+
``--querycount`` - show top N tests with most queries
34+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35+
Show a list of top N tests which executed most queries. Use `--querycount=0`
36+
to display a list of all tests ordered by the number of queries executed.
37+
3238
Running tests in parallel with pytest-xdist
3339
-------------------------------------------
3440
pytest-django supports running tests on multiple processes to speed up test

0 commit comments

Comments
 (0)