From cbb616bfaafd501620ab6ddea71d1b0747360fd1 Mon Sep 17 00:00:00 2001 From: Matias Bordese Date: Wed, 22 Jun 2022 14:53:03 -0300 Subject: [PATCH] Minor improvements to developer docs --- DEVELOPER.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/DEVELOPER.md b/DEVELOPER.md index 37a0a526..ec014908 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -64,7 +64,7 @@ python manage.py createsuperuser 3. Launch the backend: ```bash # Http server: -python manage.py runserver 8080 +python manage.py runserver 0.0.0.0:8080 # Worker for background tasks (run it in the parallel terminal, don't forget to export .env there) python manage.py start_celery @@ -203,11 +203,20 @@ Credentials: admin/admin ### Running tests locally +In the `engine` directory, with the `.env` vars exported and virtualenv activated + +```bash +pytest ``` -# in the engine directory, with the virtualenv activated -pytest --ds=settings.dev + +You can also install `pytest.xdist` in your env and run tests in parallel: + +```bash +pip install pytest.xdist +pytest -n4 ``` + ## IDE Specific Instructions ### PyCharm