This repository was archived by the owner on May 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Test Suites
Neeraj Dhiman edited this page Feb 3, 2017
·
8 revisions
- Make sure you have following Environment variables set in your system where you supposed to run Test Cases.
- All below env variables are Urls, e.g.,
http://0.0.0.0:8000
SERVER_URL
PROCESS_MICRO_SERVICE
RESOURCE_MICRO_SERVICE
WIDGETS_MICRO_SERVICE
VRT_MICRO_SERVICE
- Following unit test categories are covered :
-
Models
Based unit test case with keywordtest_models
. -
Object
level API's based unit test case with keywordtest_api
. -
Authorization
level based unit test case with keywordtest_authorization
.
-
- Your can run unit test cases with following commands :
- all at once -
python manage.py test
- Run according to app base :
python manage.py test apps.{app_name}.tests.{keyword}
- e.g.,
python manage.py test apps.process.tests.test_models
- all at once -
- Run with this command
python manage.py test_use_case
and then follow the instructions onCLI
. - This above script enables you to load any
runtime
with anywidget
, So we can test any use case e.g.,Logbook
for now.