Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: display test duration#45344

Merged
tarekziade merged 1 commit into
mainfrom
tarek-testtime
Apr 9, 2026
Merged

refactor: display test duration#45344
tarekziade merged 1 commit into
mainfrom
tarek-testtime

Conversation

@tarekziade

@tarekziade tarekziade commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Simple hook to display test duration.

This will append inline duration per test during the run, example:

tests/utils/test_configuration_utils.py::ConfigPushToHubTester::test_push_to_hub
[gw1] [ 90%] PASSED tests/utils/test_configuration_utils.py::ConfigPushToHubTester::test_push_to_hub tests/utils/test_configuration_utils.py::ConfigPushToHubTester::test_push_to_hub [PASSED] 28.678s

unlike the --duration option that generates a report at the end of the run.

@tarekziade tarekziade requested a review from ydshieh April 9, 2026 14:22
@tarekziade tarekziade self-assigned this Apr 9, 2026
@tarekziade tarekziade changed the title refactore: display test duration refactor: display test duration Apr 9, 2026
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@ydshieh ydshieh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool

@tarekziade tarekziade added this pull request to the merge queue Apr 9, 2026
Merged via the queue into main with commit 1e931b8 Apr 9, 2026
18 checks passed
@tarekziade tarekziade deleted the tarek-testtime branch April 9, 2026 15:19
sirzechs66 pushed a commit to sirzechs66/transformers that referenced this pull request Apr 18, 2026
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 this pull request may close these issues.

3 participants