Skip to content
This repository was archived by the owner on Nov 14, 2022. It is now read-only.

Commit 598de6d

Browse files
committed
📝 Update docs for running tests live
1 parent 6d819b8 commit 598de6d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

{{cookiecutter.project_slug}}/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,22 @@ If you need to install any additional package for the tests, add it to the file
146146

147147
If you use GitLab CI the tests will run automatically.
148148

149+
#### Test running stack
150+
151+
If your stack is already up and you just want to run the tests, you can use:
152+
153+
```bash
154+
docker-compose exec backend-tests /tests-start.sh
155+
```
156+
157+
That `/tests-start.sh` script inside the `backend-tests` container calls `pytest`. If you need to pass extra arguments to `pytest`, you can pass them to that command and they will be forwarded.
158+
159+
For example, to stop on first error:
160+
161+
```bash
162+
docker-compose exec backend-tests /tests-start.sh -x
163+
```
164+
149165
### Live development with Python Jupyter Notebooks
150166

151167
If you know about Python [Jupyter Notebooks](http://jupyter.org/), you can take advantage of them during local development.

0 commit comments

Comments
 (0)