Skip to content
Snippets Groups Projects
Commit 1d4f2dd4 authored by robinwilliam.hundt's avatar robinwilliam.hundt
Browse files

Parralelized tests

parent 006c575c
No related branches found
No related tags found
No related merge requests found
Pipeline #105283 failed
This commit is part of merge request !170. Comments created here will be created in the context of that merge request.
......@@ -70,7 +70,7 @@ test_pytest:
services:
- postgres:9.6
script:
- pytest --cov --ds=grady.settings.test core/tests
- pytest -n 4 --cov --ds=grady.settings.test core/tests
artifacts:
paths:
- .coverage
......@@ -105,7 +105,7 @@ test_frontend:
- cp frontend/dist/index.html core/templates
- python util/format_index.py
- python manage.py collectstatic --no-input
- HEADLESS_TESTS=True pytest --ds=grady.settings.test functional_tests
- HEADLESS_TESTS=True pytest -n 4 --ds=grady.settings.test functional_tests
artifacts:
paths:
- .screenshots
......
......@@ -28,13 +28,13 @@ install:
pip install -Ur requirements.dev.txt
test:
DJANGO_SETTINGS_MODULE=grady.settings pytest
pytest -n 4 --ds=grady.settings core/tests
teste2e:
cd frontend && yarn build && cp dist/index.html ../core/templates && cd .. && python util/format_index.py && python manage.py collectstatic --no-input && HEADLESS_TESTS=$(headless) pytest --ds=grady.settings $(path); git checkout core/templates/index.html
cd frontend && yarn build && cp dist/index.html ../core/templates && cd .. && python util/format_index.py && python manage.py collectstatic --no-input && HEADLESS_TESTS=$(headless) pytest -n 4 --ds=grady.settings $(path); git checkout core/templates/index.html
teste2e-nc:
cp frontend/dist/index.html ./core/templates && python util/format_index.py && python manage.py collectstatic --no-input && HEADLESS_TESTS=$(headless) pytest --ds=grady.settings $(path); git checkout core/templates/index.html
cp frontend/dist/index.html ./core/templates && python util/format_index.py && python manage.py collectstatic --no-input && HEADLESS_TESTS=$(headless) pytest -n 4 --ds=grady.settings $(path); git checkout core/templates/index.html
coverage:
......
flake8~=3.6.0
pre-commit~=1.13.0
pytest~=4.4
pytest-cov~=2.6.0
pytest-xdist~=1.29
pytest-django~=3.5.0
selenium~=3.141.0
factory-boy~=2.11.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment