Integrate pytest-randomly into the test suite

As a lot of the integration tests populate the database with test data,
it is deemed safer to run the tests in random order to uncover potential
dependencies between distinct test cases.
Because of how the `db_session` fixture is designed, this should already
be taken care of.
This commit is contained in:
Alexander Hess 2020-12-15 11:35:05 +01:00
commit 0aefa22666
Signed by: alexander
GPG key ID: 344EA5AB10D868E0

View file

@ -226,6 +226,7 @@ def test(session):
'pytest',
'pytest-cov',
'pytest-env',
'pytest-randomly',
'xdoctest[optional]',
)
@ -240,6 +241,7 @@ def test(session):
'--cov-branch',
'--cov-fail-under=100',
'--cov-report=term-missing:skip-covered',
'--randomly-seed=4287',
'-k',
'not e2e',
PYTEST_LOCATION,