You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test coverage for certain functions needs to be improved to pick up any issues or changes in the future that could affect core functionality.
Functionality Tests
These ensure given correct data is passed a correct result is generated.
Proportions when group_cols = None
Rates when group_cols = None
Means when group_cols = None
ISRate when group_cols = None
ISRatio when group_cols = None
funnels (expand tests for calculate_funnel_points(), currently only one test - see R package.
utils - add test for get_calc_variables() function
utils_funnel
confidence_intervals - wilsons generic + changes wilsons into a single parametrised test like byars
confidence_intervals - byars generic
confidence_intervals - exact (lower, upper and generic)
confidence_intervals - student's t-dist
confidence_intervals - dobsons (lower, upper)
validations - tests need for check_kwargs() and group_args()
Error Handling Tests
Within each function, we run a series of validation checks on the parameters passed to ensure if anything wrong/invalid is passed through, we purposefully generate an error. This is minimises the risk the function generates an incorrect result and also helps the user to identify any issues in what they have passed by giving a useful error. Many of the functions use the same validation checks, these have been covered with in the validations script and are tested with in the tests_validations, so do not need to be covered. However, any ValueErrors or TypeError checks within the scripts themselves (i.e. DSR, rates, funnels, etc) do need specific error handling tests. See quantiles.py and test_quantiles.py for an example and how to layout the test script.
DSR - Add test for ValueError
ISRate
ISRatio
Funnels currently has no error handling tests, there should one error handling test for each individual ValueError or TypeError that occurs, to ensure if the conditions
Means - Add test for TypeError
Proportions - Add tests for ValueErrors (one of them is already being tested for, I would suggest moving them into a different class specifically for error handling just for readability.
utils - Add tests tests for join_euro_standard_pops() function (functionality testing for this function should be covered within the tests for DSRs.
utils_funnel
confidence_intervals,
validations - tests need for check_kwargs() and group_args()
The text was updated successfully, but these errors were encountered:
Test coverage for certain functions needs to be improved to pick up any issues or changes in the future that could affect core functionality.
Functionality Tests
These ensure given correct data is passed a correct result is generated.
Error Handling Tests
Within each function, we run a series of validation checks on the parameters passed to ensure if anything wrong/invalid is passed through, we purposefully generate an error. This is minimises the risk the function generates an incorrect result and also helps the user to identify any issues in what they have passed by giving a useful error. Many of the functions use the same validation checks, these have been covered with in the validations script and are tested with in the tests_validations, so do not need to be covered. However, any ValueErrors or TypeError checks within the scripts themselves (i.e. DSR, rates, funnels, etc) do need specific error handling tests. See quantiles.py and test_quantiles.py for an example and how to layout the test script.
The text was updated successfully, but these errors were encountered: