Skip to content

Commit a4833d3

Browse files
committed
improve docs
1 parent 51fddc1 commit a4833d3

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

backend/README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,22 @@ Nevertheless, if it doesn't detect a change but a syntax error, it will just sto
138138
To test the backend run:
139139

140140
```console
141-
$ bash ./scripts/test.sh
141+
$ bash ./scripts/start-test.sh
142142
```
143+
...or inside docker:
144+
```console
145+
$ docker compose exec backend bash ./tests-start.sh
146+
```
147+
148+
To run a specific test:
149+
```console
150+
$ bash ./tests-start.sh app/tests/api/routes/test_users.py::test_update_user
151+
```
152+
To run a specific test without coverage:
153+
```console
154+
$ bash ./tests-start.sh --no-coverage app/tests/api/routes/test_users.py::test_update_user
155+
```
156+
143157

144158
The tests run with Pytest, modify and add tests to `./backend/app/tests/`.
145159

backend/scripts/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ if [ $NO_COVERAGE -eq 0 ]; then
2020
coverage html --title "Coverage Report"
2121
else
2222
pytest "$@"
23-
fi
23+
fi

0 commit comments

Comments
 (0)