Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console output for execution time of tests #13125

Open
afcmrp opened this issue Jan 11, 2025 · 2 comments · May be fixed by #13126
Open

Console output for execution time of tests #13125

afcmrp opened this issue Jan 11, 2025 · 2 comments · May be fixed by #13126

Comments

@afcmrp
Copy link

afcmrp commented Jan 11, 2025

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

@RonnyPfannschmidt
Copy link
Member

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

@afcmrp afcmrp linked a pull request Jan 11, 2025 that will close this issue
@afcmrp
Copy link
Author

afcmrp commented Jan 11, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants