e4c75d9898828d8fe309af34fdea5cc17ec77316
[pti/o2.git] / README.md
1 ## Building containers\r
2 \r
3 \r
4 ```sh\r
5 docker-compose build\r
6 ```\r
7 \r
8 ## Running the tests\r
9 \r
10 ```sh\r
11 docker-compose up -d\r
12 docker-compose run --rm --no-deps --entrypoint=pytest api /tests/unit /tests/integration\r
13 ```\r
14 \r
15 ## Tear down containers\r
16 \r
17 ```sh\r
18 docker-compose down --remove-orphans\r
19 ```\r
20 \r
21 ## Test with local virtualenv\r
22 \r
23 ```sh\r
24 python3.8 -m venv .venv && source .venv/bin/activate\r
25 pip install -r requirements.txt -c constraints.txt\r
26 pip install -r requirements-test.txt\r
27 pip install -e o2ims\r
28 # pip install -e o2dms -e o2common\r
29 pytest tests/unit\r
30 pytest tests/integration\r
31 pytest tests/e2e\r
32 ```\r