Skip to content

Commit 5b12cdd

Browse files
committed
update testing documentation
1 parent 614a88c commit 5b12cdd

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ Then the `/test` route will not be available from `/v3` onwards.
9696
To run tests:
9797

9898
```sh
99-
python3 -m pip install -r requirements.test.txt
100-
pytest test/
99+
python3 -m pip install .[dev]
100+
MONGODB_URI="mongodb://localhost:27017" pytest ./test
101+
```
102+
103+
This assumes that you have a mongodb service running at `mongodb://localhost:27017`.
104+
105+
Alternatively you can run start up the development stack with docker compose and then
106+
run tests in the docker container:
107+
108+
```sh
109+
docker compose -f docker-compose.dev.yml up -d
110+
docker compose exec marble_api pytest ./test
101111
```

0 commit comments

Comments
 (0)