diff --git a/changelog/12658.doc.1.rst b/changelog/12658.doc.1.rst new file mode 100644 index 00000000000..57e93ad1bd5 --- /dev/null +++ b/changelog/12658.doc.1.rst @@ -0,0 +1 @@ +Grouped collection reporting hooks with the other collection hooks in the reference documentation. diff --git a/doc/en/reference/reference.rst b/doc/en/reference/reference.rst index 41dd956842f..70af5288002 100644 --- a/doc/en/reference/reference.rst +++ b/doc/en/reference/reference.rst @@ -765,6 +765,19 @@ items, delete or otherwise amend the test items: .. hook:: pytest_collection_finish .. autofunction:: pytest_collection_finish +Collection reporting hooks: + +.. hook:: pytest_collectstart +.. autofunction:: pytest_collectstart +.. hook:: pytest_make_collect_report +.. autofunction:: pytest_make_collect_report +.. hook:: pytest_itemcollected +.. autofunction:: pytest_itemcollected +.. hook:: pytest_collectreport +.. autofunction:: pytest_collectreport +.. hook:: pytest_deselected +.. autofunction:: pytest_deselected + Test running (runtest) hooks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -805,16 +818,6 @@ Reporting hooks Session related reporting hooks: -.. hook:: pytest_collectstart -.. autofunction:: pytest_collectstart -.. hook:: pytest_make_collect_report -.. autofunction:: pytest_make_collect_report -.. hook:: pytest_itemcollected -.. autofunction:: pytest_itemcollected -.. hook:: pytest_collectreport -.. autofunction:: pytest_collectreport -.. hook:: pytest_deselected -.. autofunction:: pytest_deselected .. hook:: pytest_report_header .. autofunction:: pytest_report_header .. hook:: pytest_report_collectionfinish