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

Reducing scope of test_get_package_metadata_returns_expected_results? #114

Open
fkiraly opened this issue Jan 14, 2023 · 1 comment
Open
Labels
high priority Priority issue

Comments

@fkiraly
Copy link
Contributor

fkiraly commented Jan 14, 2023

Adding a new function or class in most of skbase's modules will trigger a failure of test_get_package_metadata_returns_expected_results, since skbase itself is being used as a test case for the lookup functionality, with expected retrieved functions and classes hard coded in the test config.

I don't think this is such a good idea, as the tests couple unrelated functionality to the lookup module.

E.g., it is not possible to refactor modules of skbase without triggering the test failure that is logically unrelated.

I would suggest to reduce the scope of test_get_package_metadata_returns_expected_results, possibly substantially, to the mock_package or that and a few other places? The logical test coverage should not be substantially reduced by that (if it is, I would extend mock_package instead of abusing skbase)

Just based on the compartmentalisation design principle - refactoring a module shouldn't break things in unexpected, logically unrelated places.

@RNKuhns
Copy link
Contributor

RNKuhns commented Jan 26, 2023

@fkiraly this is a temporary placeholder until a more developed mock_package is in-place. At a minimum, I know we need it to have sub-modules and include non-public functions and classes.

@RNKuhns RNKuhns added the high priority Priority issue label Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high priority Priority issue
Projects
None yet
Development

No branches or pull requests

2 participants