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

Speed up testing suite #1231

Open
cthoyt opened this issue Oct 25, 2024 · 0 comments
Open

Speed up testing suite #1231

cthoyt opened this issue Oct 25, 2024 · 0 comments

Comments

@cthoyt
Copy link
Member

cthoyt commented Oct 25, 2024

There are several tests that are very slow that make the entire Bioregistry testing suite take more than ten minutes.

138.26s call     tests/test_data_slow.py::TestDataSlow::test_prefix_map_priorities
134.00s call     tests/test_contexts.py::TestContexts::test_obo_context
68.07s call     tests/test_contexts.py::TestContexts::test_obo_converter
66.37s call     tests/test_contexts.py::TestContexts::test_data
65.33s call     tests/test_data.py::TestRegistry::test_obo_prefix_map
44.05s call     tests/test_manager.py::TestResourceManager::test_prefix_map_preferred
33.75s call     tests/test_data.py::TestRegistry::test_records
32.31s call     tests/test_web/test_api.py::TestWeb::test_api_registry
24.02s call     tests/test_data.py::TestRegistry::test_default_prefix_map_no_miriam
23.75s call     tests/test_manager.py::TestResourceManager::test_prefix_map
23.67s call     tests/test_manager.py::TestResourceManager::test_get_records
23.24s call     tests/test_data_slow.py::TestDataSlow::test_unique_iris
22.94s call     tests/test_data_slow.py::TestDataSlow::test_parse_http_vs_https
7.29s call     tests/test_identifiers_org.py::TestIdentifiersOrg::test_url_banana
4.33s call     tests/test_manager.py::TestResourceManager::test_full_rdf
2.85s call     tests/test_manager.py::TestResourceManager::test_rasterized_manager
1.90s call     tests/test_web/test_ui.py::TestUI::test_ui
1.38s call     tests/test_data.py::TestRegistry::test_curie_patterns
1.24s call     tests/test_data.py::TestRegistry::test_lint
0.78s call     tests/test_identifiers_org.py::TestIdentifiersOrg::test_url

One way to address this is to identify if only data files have changed in the diff, then only run data tests.

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

No branches or pull requests

1 participant