Better way to collect tests

This commit is contained in:
Alex Pyrgiotis 2024-10-08 18:36:09 +03:00
parent fba009a7f0
commit bc58b78db7
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -45,7 +45,7 @@ test:
# Make each GUI test run as a separate process, to avoid segfaults due to # Make each GUI test run as a separate process, to avoid segfaults due to
# shared state. # shared state.
# See more in https://github.com/freedomofpress/dangerzone/issues/493 # See more in https://github.com/freedomofpress/dangerzone/issues/493
pytest --co -q tests/gui | grep -v ' collected' | xargs -n 1 pytest -v pytest --co -q tests/gui | grep -e '^tests/' | xargs -n 1 pytest -v
pytest -v --cov --ignore dev_scripts --ignore tests/gui --ignore tests/test_large_set.py pytest -v --cov --ignore dev_scripts --ignore tests/gui --ignore tests/test_large_set.py