-
Notifications
You must be signed in to change notification settings - Fork 8
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
Clean up pytest markers #65
Comments
How do we want to deal with slow tests? But I'd suggest to for sure delete |
Whoever takes this ticket, would it be possible to add the Atlas-Download-Tools/tests/test_utils.py Lines 71 to 93 in 43e77aa
They each take 2-3 seconds. |
Well, I guess I am open to discussion here. My two cents: Locally, I always run pytest Which would currently exclude One can always dynamically overwrite the markers
IMO this could be done in the CI since I would not mind if it takes a couple of extra seconds. |
I guess we need a consensus on what we want to run where 😅
I guess at least in one of the three we should run all tests. |
Anyway, the |
Maybe we can try and find a My preference (skip slow and internet tests, durations=5, verbosity=0, less spamming in the stdout): [pytest]
testpaths = tests
addopts =
-m "not slow and not internet"
--cov-config=tox.ini
--no-cov-on-fail
--color=yes
markers =
internet: requires connection to the internet
slow: mark denoting a test that is too slow How about you? Post your preferred config here and we can try to find an intersection/union :) |
But I guess in the CI we
So, for exampe, in run: tox -vv -e ${{ matrix.tox-env }} -- --color=yes -m "" --cov --durations=20 --verbosity=1 |
Atlas-Download-Tools/tox.ini
Lines 70 to 83 in 829206f
It seems like the
todo
andslow
markers are not used in the code anymore. Do you think we should keep them? Additionally, there are some tests that requires internet and are not marked with the markerinternet
. See below an example (maybe there are more?).Atlas-Download-Tools/tests/test_utils.py
Lines 521 to 529 in 829206f
Anyway, I am not sure how useful the
internet
marker is, however, it can help us identify and filter tests that require it.The text was updated successfully, but these errors were encountered: