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
Our unit test suite becoming supper slow (lib unit-test time takes 58 seconds!) and useless as a result (now I cannot run it for every change I do - which works just fine before).
We need to reduce it's unit-tests run-time significantly (5-10 times).
I see multiple anti-patterns but I'm sure there are more:
Too many pytest.mark.parametrize
The test below generates 50+ tests without a good reason. For example - there is not need to test save() in diff test - tests have to be "orthogonal". It needs to be replaced by 7-15 smaller tests.
It looks like test_resolve_file() and such require access to clouds.
E pytest_servers.exceptions.RemoteUnavailable: gs: Failed to setup mock remote: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
Version Info
The text was updated successfully, but these errors were encountered:
Description
Our unit test suite becoming supper slow (
lib
unit-test time takes 58 seconds!) and useless as a result (now I cannot run it for every change I do - which works just fine before).We need to reduce it's unit-tests run-time significantly (5-10 times).
I see multiple anti-patterns but I'm sure there are more:
pytest.mark.parametrize
The test below generates 50+ tests without a good reason. For example - there is not need to test
save()
in diff test - tests have to be "orthogonal". It needs to be replaced by 7-15 smaller tests.It looks like
test_resolve_file()
and such require access to clouds.Version Info
The text was updated successfully, but these errors were encountered: