From 05ac91a0b8f6e4f50e85a2de12fdc292d9d2204f Mon Sep 17 00:00:00 2001 From: Burak Ince Date: Wed, 22 Mar 2017 10:52:47 +0300 Subject: [PATCH] Add test commands to API document. --- README.md | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 136217b..c0bf224 100644 --- a/README.md +++ b/README.md @@ -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