File tree Expand file tree Collapse file tree 6 files changed +20
-12
lines changed
Expand file tree Collapse file tree 6 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ dist: xenial
22language : python
33python : 3.8
44
5- install :
6- - pip3 install -r requirements.txt
7-
85script :
96- make all
107
Original file line number Diff line number Diff line change 44up :
55 docker-compose up -d app
66
7- test :
8- pytest --tb=short
7+ test : up
8+ docker-compose run --rm --no-deps --entrypoint=pytest app /tests/unit /tests/integration /tests/e2e
9+
10+ unit-tests :
11+ docker-compose run --rm --no-deps --entrypoint=pytest app /tests/unit
12+
13+ integration-tests : up
14+ docker-compose run --rm --no-deps --entrypoint=pytest app /tests/integration
15+
16+ e2e-tests : up
17+ docker-compose run --rm --no-deps --entrypoint=pytest app /tests/e2e
918
1019logs :
1120 docker-compose logs app | tail -100
1221
13- all : build up test
22+ down :
23+ docker-compose down --remove-orphans
24+
25+ all : down build up test
Original file line number Diff line number Diff line change @@ -10,8 +10,11 @@ services:
1010 environment :
1111 - DB_HOST=postgres
1212 - DB_PASSWORD=abc123
13+ - API_HOST=app
14+ - PYTHONDONTWRITEBYTECODE=1
1315 volumes :
1416 - ./src:/src
17+ - ./tests:/tests
1518 ports :
1619 - " 5005:80"
1720
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ [pytest]
2+ addopts = --tb =short
You can’t perform that action at this time.
0 commit comments