Add slow marker to multiple test cases #699
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces the
@pytest.mark.slow
decorator to multiple test functions across various test files. This change helps categorize tests that are expected to take a longer time to run, allowing for better test management and execution control.Criterion: Test file takes longer than ~5 seconds to run.
To exclude any test marked as slow use
-m "not slow"
option in thepytest
command.tests/test_data_sanity.py
: Added@pytest.mark.slow
totest_data_sanity_check
.tests/test_distribution_utils.py
: Added@pytest.mark.slow
to multiple test functions includingtest_lapse_distribution
,test_apply_param_bounds_to_loglik
,test_make_distribution
,test_extra_fields
, andtest_ensure_positive_ndt
. [1] [2] [3] [4]tests/test_hssm.py
: Added@pytest.mark.slow
to various test functions such astest_transform_params_general
,test_custom_model
,test_model_definition_outside_include
,test_sample_prior_predictive
,test_override_default_link
,test_resampling
,test_add_likelihood_parameters_to_data
,test_model_creation_constant_parameter
,test_prior_settings_basic
, andtest_compile_logp
. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]tests/test_initvals.py
: Added@pytest.mark.slow
to test functions includingtest_sample_map
,test_basic_model
,test_basic_model_p_outlier
,test_basic_model_p_outlier_initval
,test_reg_model
,test_reg_model_subset
,test_angle_model_reg
,test_angle_model
, andtest_process_no_process
. [1] [2] [3] [4] [5] [6] [7] [8] [9]tests/test_likelihoods.py
: Added@pytest.mark.slow
totest_no_inf_values
,test_bbox
,test_analytical_gradient
, andtest_lapse_distribution_cav
. [1] [2] [3] [4]tests/test_likelihoods_lba.py
: Added@pytest.mark.slow
totest_make_missing_data_callable
.tests/test_onnx.py
: Added@pytest.mark.slow
totest_interpret_onnx
andtest_make_jax_logp_ops
. [1] [2]tests/test_plotting.py
: Added@pytest.mark.slow
totest_plot_posterior_predictive
andtest_plot_quantile_probability
. [1] [2]tests/test_plotting_cartoon.py
: Added@pytest.mark.slow
to parameterized tests. [1] [2]tests/test_register.py
: Added@pytest.mark.slow
totest_register_model
.tests/test_sample_posterior_predictive.py
: Added@pytest.mark.slow
totest_sample_posterior_predictive
.tests/test_save_load.py
: Added@pytest.mark.slow
totest_save_load_model_only
.