Skip to content

Commit 6bbd58c

Browse files
committed
📝 Update docs for running tests live
1 parent 1aeb320 commit 6bbd58c

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

{{cookiecutter.project_slug}}/README.md

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

135135
If you use GitLab CI the tests will run automatically.
136136

137+
#### Test running stack
138+
139+
If your stack is already up and you just want to run the tests, you can use:
140+
141+
```bash
142+
docker-compose exec backend-tests /tests-start.sh
143+
```
144+
145+
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.
146+
147+
For example, to stop on first error:
148+
149+
```bash
150+
docker-compose exec backend-tests /tests-start.sh -x
151+
```
152+
137153
### Live development with Python Jupyter Notebooks
138154

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

0 commit comments

Comments
 (0)