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

Modify the pytest output to include the execution duration for all tests #7482

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

drew2a
Copy link
Contributor

@drew2a drew2a commented Jun 12, 2023

This PR helps to reveal the root cause of #7132 by adding the execution duration of each test to the pytest output.

The modified output looks like this:

src/tribler/core/utilities/async_group/tests/test_async_group.py::test_del_error PASSED [ 11%] in 0.005s
src/tribler/core/utilities/async_group/tests/test_async_group.py::test_del_no_error PASSED [ 11%] in 0.005s
src/tribler/core/utilities/async_group/tests/test_async_group.py::test_add_task_when_cancelled PASSED [ 11%] in 0.005s
src/tribler/core/components/gigachannel/community/tests/test_gigachannel_community.py::TestGigaChannelUnits::test_remote_select_channel_timeout PASSED [ 11%] in 0.259s
src/tribler/core/components/gigachannel/community/tests/test_gigachannel_community.py::TestGigaChannelUnits::test_remote_search_mapped_peers PASSED [ 11%] in 0.339s
src/tribler/core/components/gigachannel/community/tests/test_gigachannel_community.py::TestGigaChannelUnits::test_drop_silent_peer_empty_response_packet PASSED [ 11%] in 0.227s
src/tribler/core/components/gigachannel/community/tests/test_gigachannel_community.py::TestGigaChannelUnits::test_gigachannel_search PASSED [ 12%] in 0.965s
src/tribler/core/components/gigachannel/community/tests/test_gigachannel_community.py::TestGigaChannelUnits::test_get_known_subscribed_peers_for_node PASSED [ 12%] in 0.089s
src/tribler/core/components/gigachannel/community/tests/test_gigachannel_community.py::TestGigaChannelUnits::test_channels_peers_mapping_drop_excess_peers PASSED [ 12%] in 0.100s
src/tribler/core/components/gigachannel/community/tests/test_gigachannel_community.py::TestGigaChannelUnits::test_remote_select_channel_contents_empty PASSED [ 12%] in 0.225s
src/tribler/core/components/gigachannel/community/tests/test_gigachannel_community.py::TestGigaChannelUnits::test_remote_select_channel_contents PASSED [ 12%] in 0.231s
src/tribler/core/components/gigachannel/community/tests/test_gigachannel_community.py::TestGigaChannelUnits::test_query_on_introduction PASSED [ 12%] in 0.077s

Refs:

See the real examples:

@drew2a drew2a marked this pull request as ready for review June 12, 2023 11:52
@drew2a drew2a requested review from a team, xoriole and kozlovsky and removed request for a team June 12, 2023 11:52
@drew2a drew2a merged commit 10847cb into Tribler:release/7.13 Jun 12, 2023
@drew2a drew2a deleted the feature/pytest_duration branch June 12, 2023 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants