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 — Console output for execution time of tests · Issue #13125 · pytest-dev/pytest

Console output for execution time of tests #13125

New issue
Copy link
New issue
Copy link
Closed
#13126
Closed
Console output for execution time of tests#13125
#13126
Copy link

Description

@afcmrp
afcmrp
opened on Jan 11, 2025
Issue body actions

What's the problem this feature will solve?

The possibility to see execution time of each test as soon as they complete.

Describe the solution you'd like

An additional config option for console_output_style seems like a good solution. The output should be as human-readable, detailed and short as possible (or a good compromise between the three).

For most of my projects, progress/count have not provided useful information, but timings would have been. It's nice to keep track of execution times for tests to spot performance regressions etc early. Other users seem to have had the same need: #8268

Alternative Solutions

I know that the flag --duration=0 reports tests duration retroactively, but I would like to see it as soon as the test is finished.

Additional context

Activity

  1. RonnyPfannschmidt commented on Jan 11, 2025

    @RonnyPfannschmidt
    RonnyPfannschmidt
    on Jan 11, 2025
    Member
    More actions

    This could be included in very verbose output

    This needs some tinkering for good ux

    Some devtools already show this in the test tree of their pytest integration

    Reacted by Emil Hjelm
  2. afcmrp commented on Jan 11, 2025

    @afcmrp
    afcmrp
    on Jan 11, 2025
    ContributorAuthor
    More actions

    This could be included in very verbose output

    This needs some tinkering for good ux

    Some devtools already show this in the test tree of their pytest integration

    Good input. I think there is a use-case for timer even for non-verbose output however: Timing of entire test files instead of test cases.

  3. nicoddemus
    closed this as completedin #13126on Jan 20, 2025
  4. nicoddemus
    closed this as completedin b89c1ceon Jan 20, 2025
  5. tapetersen
    added a commit that references this issue on Jan 20, 2025

    Add confval ``console_output_style`` option ``times`` (pytest-dev#13126)

    This issue will close once commit b89c1ce is merged into the 'main' branch.
    b89c1ce
  6. 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

    No labels
    No labels

    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.