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

Mark slow tests #131

Merged
merged 3 commits into from
Apr 25, 2022
Merged

Mark slow tests #131

merged 3 commits into from
Apr 25, 2022

Conversation

lahdjirayhan
Copy link
Contributor

This PR adds a flag to pytest invocation --skip-slow. This flag allows user to skip tests that takes a long time (mostly get_historical_data stuffs, really). By default, pytest will run all tests, which may or may not be desirable.

pytest --skip-slow

Which tests are slow? I determined it arbitrarily by setting a time limit of how much time it roughly takes over a few test runs. I mark tests that run over 10s in my machine to be "slow".


Note: I haven't documented this anywhere on the repo yet. If this can wait, I'll do some writeups. Otherwise, I can do another PR in the near future.

@lahdjirayhan lahdjirayhan changed the base branch from main to dev April 25, 2022 02:49
@Milind220
Copy link
Collaborator

@lahdjirayhan Hey! this appears to have some a conflict, once it's solved I'll merge it in. We can add the documentation for this another time :)

@Milind220 Milind220 merged commit d626295 into Ozon3Org:dev Apr 25, 2022
@lahdjirayhan lahdjirayhan deleted the mark-slow-tests branch April 25, 2022 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants