diff --git a/pytest.ini b/pytest.ini index d280df8b..8a20acb2 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,5 +1,5 @@ [pytest] -addopts = --ds=config.settings.test --reuse-db +addopts = --ds=config.settings.test --reuse-db -n auto python_files = tests.py test_*.py filterwarnings = # Convert all warnings to errors. diff --git a/requirements/test-requirements.in b/requirements/test-requirements.in index f34770c7..0ebeb959 100644 --- a/requirements/test-requirements.in +++ b/requirements/test-requirements.in @@ -5,6 +5,10 @@ types-requests # Pytest pytest # https://github.com/pytest-dev/pytest +# Parallelized tests +pytest-xdist # https://github.com/pytest-dev/pytest-xdist +# Coverage integrated with pytest +pytest-cov # Pytest improvements - progress bar, etc. pytest-sugar # https://github.com/Frozenball/pytest-sugar # Mock HTTP responses diff --git a/requirements/test-requirements.txt b/requirements/test-requirements.txt index 5c5bb7ce..7c016a59 100644 --- a/requirements/test-requirements.txt +++ b/requirements/test-requirements.txt @@ -22,6 +22,8 @@ django-test-migrations==1.3.0 # via -r requirements/test-requirements.in exceptiongroup==1.2.0 # via pytest +execnet==2.1.1 + # via pytest-xdist factory-boy==3.3.0 # via -r requirements/test-requirements.in faker==23.2.1 @@ -44,10 +46,14 @@ pytest==8.2.0 # -r requirements/test-requirements.in # pytest-django # pytest-sugar +pytest-cov==5.0.0 + # via -r requirements/test-requirements.in pytest-django==4.8.0 # via -r requirements/test-requirements.in pytest-sugar==1.0.0 # via -r requirements/test-requirements.in +pytest-xdist==3.6.1 + # via -r requirements/test-requirements.in python-dateutil==2.8.2 # via faker pyyaml==6.0.1