GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: TerminalReporter is not documented · Issue #6649 · pytest-dev/pytest

doc: TerminalReporter is not documented #6649

New issue
Copy link
New issue
Copy link
Closed
#12661
Closed
doc: TerminalReporter is not documented#6649
#12661
Copy link
Labels
type: bugproblem that needs to be addressedtype: docsdocumentation improvement, missing or needing clarification

Description

@blueyed
blueyed
opened on Feb 1, 2020
Issue body actions

It 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
 ~~~~~~~~~~

Activity

  1. blueyed
    added
    type: bugproblem that needs to be addressed
    type: docsdocumentation improvement, missing or needing clarification
    on Feb 1, 2020
  2. shankarj67 commented on Mar 5, 2020

    @shankarj67
    shankarj67
    on Mar 5, 2020
    More actions

    I would like to work on this. What exactly do I have to do?

  3. blueyed commented on Mar 6, 2020

    @blueyed
    blueyed
    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)

  4. mcsitter commented on May 30, 2020

    @mcsitter
    mcsitter
    on May 30, 2020
    Contributor
    More actions

    I build the documentation. You can see the result here:
    grafik
    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.
    grafik

    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

  5. soxofaan commented on Jul 25, 2024

    @soxofaan
    soxofaan
    on Jul 25, 2024
    Contributor
    More actions

    same issue here: I was looking into hook pytest_terminal_summary at https://docs.pytest.org/en/latest/reference/reference.html#pytest.hookspec.pytest_terminal_summary but "TerminalReporter" there is a bit of dead end at the moment.

    I think even the minimal docs from the quickfix mentioned above would be useful as it would at least link to the appropriate source code at https://docs.pytest.org/en/latest/_modules/_pytest/terminal.html, which, while spartan, is a lot better than the current dead end.

  6. soxofaan
    added 2 commits that reference this issue on Jul 25, 2024

    Include TerminalReporter in reference docs pytest-dev#6649

    d020e1b

    Include TerminalReporter in reference docs pytest-dev#6649

    e3a6c63
  7. soxofaan commented on Jul 25, 2024

    @soxofaan
    soxofaan
    on Jul 25, 2024
    Contributor
    More actions

    @blueyed I created PR #12661 from your suggestion. Do you want me to include attribution to you in the changelog entry?

  8. soxofaan commented on Jul 25, 2024

    @soxofaan
    soxofaan
    on Jul 25, 2024
    Contributor
    More actions

    FYI: in the mean time two TerminalReporter methods got docstrings: wrap_write and build_summary_stats_line

    The added doc section now looks like:
    image

  9. soxofaan
    added a commit that references this issue on Jul 26, 2024

    TerminalReporter: add to pytest namespace and fix docstring (issue py…

    c3b18fb
  10. nicoddemus
    closed this as completedin #12661on Jul 29, 2024
  11. nicoddemus
    closed this as completedin 7ce3222on Jul 29, 2024
  12. luketainton
    added a commit that references this issue on Jan 5, 2026

    chore(deps): update dependency pytest to v9 (#305)

    4b75154
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugproblem that needs to be addressedtype: docsdocumentation improvement, missing or needing clarification

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.