tests: run all the tests with one command

This is mainly to check if the CI makes it work properly, especially
on Ubuntu Focal, as described in #493
This commit is contained in:
Alexis Métaireau 2024-05-23 17:44:27 +02:00 committed by Alexis Métaireau
parent 81ad3a65c2
commit 3ba9181888
No known key found for this signature in database
GPG key ID: C65C7A89A8FFC56E

View file

@ -42,11 +42,7 @@ lint-apply: lint-black-apply lint-isort-apply ## apply all the linter's suggesti
.PHONY: test .PHONY: test
test: test:
# Make each GUI test run as a separate process, to avoid segfaults due to pytest -v --cov --ignore dev_scripts --ignore tests/test_large_set.py
# shared state.
# See more in https://github.com/freedomofpress/dangerzone/issues/493
pytest --co -q tests/gui | grep -v ' collected' | xargs -n 1 pytest -v
pytest -v --cov --ignore dev_scripts --ignore tests/gui --ignore tests/test_large_set.py
.PHONY: test-large-requirements .PHONY: test-large-requirements