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

[ENH] conditional execution of test_distance and test_distance_params #5099

Merged
merged 10 commits into from Aug 19, 2023

Conversation

fkiraly
Copy link
Collaborator

@fkiraly fkiraly commented Aug 14, 2023

This PR speeds up tests by making test_distance and test_distance_params conditionally execute if and only if the respective distance function's module has changed with respect to main.

To accomplish this, the run_tests_for_class utility is extended slightly to also allow passing of functions. The name is not changed to avoid conflicts between ongoing PR.

@fkiraly fkiraly added module:distances&kernels dists_kernels and distances modules: time series distances, kernels, pairwise transforms module:tests test framework functionality - only framework, excl specific tests enhancement Adding new functionality labels Aug 14, 2023
@fkiraly fkiraly changed the title [ENH] conditional execution of test_distance_params [ENH] conditional execution of test_distance and test_distance_params Aug 19, 2023
@fkiraly fkiraly merged commit 0876b67 into main Aug 19, 2023
24 checks passed
@fkiraly fkiraly deleted the speed-test_distance_parameters branch August 19, 2023 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding new functionality module:distances&kernels dists_kernels and distances modules: time series distances, kernels, pairwise transforms module:tests test framework functionality - only framework, excl specific tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant