GeezerVison is showing github.com — doc: TerminalReporter is not documented · Issue #6649 · pytest-dev/pytest
doc: TerminalReporter is not documented #6649Labels type: bugproblem that needs to be addressedtype: docsdocumentation improvement, missing or needing clarification DescriptionIt could be added as follows, but only rewrite has a docstring and would be included.
It is used with the pytest_terminal_summary hook at least, and therefore is public API it seems.
diff --git i/doc/en/reference.rst w/doc/en/reference.rst
index 50e32d660..552ad895b 100644
--- i/doc/en/reference.rst
+++ w/doc/en/reference.rst
@@ -838,6 +838,13 @@ Session
:members:
:show-inheritance:
+TerminalReporter
+~~~~~~~~~~~~~~~~
+
+.. autoclass:: _pytest.terminal.TerminalReporter
+ :members:
+ :inherited-members:
+
TestReport
~~~~~~~~~~
Activityshankarj67 commented on Mar 5, 2020 I would like to work on this. What exactly do I have to do? blueyed commented on Mar 6, 2020 ContributorAuthor More actions @shankarj67
My patch from above might be enough to make it show up in the docs.
Check tox -e docs to generate them (or make -C doc/en if you have deps installed).
Then create a PR for it.
(but it is only my understanding that it should be documented / included, might be worth waiting for feedback from others) mcsitter commented on May 30, 2020 I build the documentation. You can see the result here:

The page is already very long so this addition should not hurt the usability. Of course it is also properly added in the table of contents with all the links (including to source) working properly.

I assume the reason why only rewrite is shown is because it is the only method with a docstring in the class as the source indicates. Adding relevant docstrings would be great but sadly that is beyond my skills and knowledge.
I am happy to open a PR for the fix.
Commit: mcsitter/pytest@5c3296ca21500581224a2e4becefc74995b6752b soxofaan commented on Jul 25, 2024 soxofaan commented on Jul 25, 2024 @blueyed I created PR #12661 from your suggestion. Do you want me to include attribution to you in the changelog entry? soxofaan commented on Jul 25, 2024 FYI: in the mean time two TerminalReporter methods got docstrings: wrap_write and build_summary_stats_line
The added doc section now looks like:

MetadataMetadatatype: bugproblem that needs to be addressedtype: docsdocumentation improvement, missing or needing clarification DevelopmentNo branches or pull requestsIssue actions
|