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

Add information about the total runtime of the test suite. #7485

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

drew2a
Copy link
Contributor

@drew2a drew2a commented Jun 13, 2023

This PR adds the total runtime of the test suite to the pytest output.
Related to #7132, #7134

The modified output:

src/tribler/core/components/metadata_store/restapi/tests/test_channels_endpoint.py::test_put_channel_thumbnail PASSED      [  5%] in 0.046s (2.9s in total)
src/tribler/core/components/metadata_store/restapi/tests/test_channels_endpoint.py::test_get_channel_contents PASSED       [  5%] in 0.082s (3.0s in total)
src/tribler/core/components/metadata_store/restapi/tests/test_channels_endpoint.py::test_get_popular_torrents PASSED       [  5%] in 0.090s (3.1s in total)
src/tribler/core/components/metadata_store/restapi/tests/test_channels_endpoint.py::test_get_channels_sort_by_health PASSED [  5%] in 0.087s (3.2s in total)
src/tribler/core/components/metadata_store/restapi/tests/test_channels_endpoint.py::test_add_torrent_invalid_uri PASSED    [  5%] in 0.234s (3.4s in total)
src/tribler/core/components/metadata_store/restapi/tests/test_channels_endpoint.py::test_get_channel_description PASSED    [  5%] in 0.042s (3.5s in total)
src/tribler/core/components/metadata_store/restapi/tests/test_channels_endpoint.py::test_get_channel_contents_remote PASSED [  5%] in 0.086s (3.5s in total)
src/tribler/core/components/metadata_store/restapi/tests/test_channels_endpoint.py::test_get_subscribed_channels PASSED    [  5%] in 0.084s (3.6s in total)
src/tribler/core/components/metadata_store/restapi/tests/test_channels_endpoint.py::test_get_my_channel_tags PASSED        [  5%] in 0.646s (4.3s in total)

For reference (The Hierarchy of hooks):

root
└── pytest_cmdline_main
 ├── pytest_plugin_registered
 ├── pytest_configure
 │ └── pytest_plugin_registered
 ├── pytest_sessionstart
 │ ├── pytest_plugin_registered
 │ └── pytest_report_header
 ├── pytest_collection
 │ ├── pytest_collectstart
 │ ├── pytest_make_collect_report
 │ │ ├── pytest_collect_file
 │ │ │ └── pytest_pycollect_makemodule
 │ │ └── pytest_pycollect_makeitem
 │ │ └── pytest_generate_tests
 │ │ └── pytest_make_parametrize_id
 │ ├── pytest_collectreport
 │ ├── pytest_itemcollected
 │ ├── pytest_collection_modifyitems
 │ └── pytest_collection_finish
 │ └── pytest_report_collectionfinish
 ├── pytest_runtestloop
 │ └── pytest_runtest_protocol
 │ ├── pytest_runtest_logstart
 │ ├── pytest_runtest_setup
 │ │ └── pytest_fixture_setup
 │ ├── pytest_runtest_makereport
 │ ├── pytest_runtest_logreport
 │ │ └── pytest_report_teststatus
 │ ├── pytest_runtest_call
 │ │ └── pytest_pyfunc_call
 │ ├── pytest_runtest_teardown
 │ │ └── pytest_fixture_post_finalizer
 │ └── pytest_runtest_logfinish
 ├── pytest_sessionfinish
 │ └── pytest_terminal_summary
 └── pytest_unconfigure

Refs:

@drew2a drew2a force-pushed the feature/total_test_duration branch from ddf68b2 to c1631de Compare June 13, 2023 11:34
@drew2a drew2a added this to the 7.14.0 milestone Jun 13, 2023
@drew2a drew2a self-assigned this Jun 13, 2023
@drew2a drew2a marked this pull request as ready for review June 13, 2023 11:39
@drew2a drew2a requested review from a team and xoriole and removed request for a team June 13, 2023 11:39
@drew2a drew2a merged commit 2839bf5 into Tribler:main Jun 13, 2023
@drew2a drew2a deleted the feature/total_test_duration branch June 13, 2023 13:31
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