Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,32 @@ docker exec -it ocl_ocl_1 python manage.py syncdb
### Running tests in a container
You can run tests in a container as any other command (see above for explanation).

On Linux:
#### On Linux

##### Unit Tests

````sh
docker-compose run ocl python manage.py test
docker-compose run ocl_api python manage.py run_test --configuration=Dev
````
On Windows:

##### Integration Tests

````sh
docker-compose run ocl_api python manage.py test integration_tests --configuration=Dev
````

#### On Windows

##### Unit Tests

````sh
docker exec -it ocl_ocl_1 python manage.py run_test --configuration=Dev
````

##### Integration Tests

````sh
docker exec -it ocl_ocl_1 python manage.py test
docker exec -it ocl_ocl_1 python manage.py test integration_tests --configuration=Dev
````

### Debugging in container
Expand Down