Skip to content

Add the --duration option to the test suite #119050

Closed
@Eclips4

Description

@Eclips4

Feature or enhancement

Proposal:

I propose adding a new option --duration to our test suite. This would print the duration of each test that has run during the test suite, to the file that the user provides.
So actual use case looks like that:
./python.exe -m test --duration tmp/stats -R 3:3
It's can be useful as the --slowest option, which already exists.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions