diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-06-01 15:36:17 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-06-01 16:21:46 +0800 |
commit | a55651eb098da2e1aa90c93294a59857711b48c1 (patch) | |
tree | 654e3adace1e4ae1690d9612c5d7b1704a607a5e /utils/test/result_collection_api/README.rst | |
parent | e0d66ea067ea59724c1dc300abe8052d4dcf88d1 (diff) |
project-ize testAPI
JIRA: FUNCTEST-284
Change-Id: I219e934bb11f50de84df2aa0345ecc7885223491
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/result_collection_api/README.rst')
-rw-r--r-- | utils/test/result_collection_api/README.rst | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/utils/test/result_collection_api/README.rst b/utils/test/result_collection_api/README.rst new file mode 100644 index 000000000..c0075bc76 --- /dev/null +++ b/utils/test/result_collection_api/README.rst @@ -0,0 +1,64 @@ +============= +opnfv-testapi +============= + +Test Results Collector of OPNFV Test Projects + +Start Server +============== + +Getting setup +^^^^^^^^^^^^^ + +Requirements for opnfv-testapi: + +* tornado +* epydoc + +These requirements are expressed in the requirements.txt file and may be +installed by running the following (from within a virtual environment):: + + pip install -r requirements.txt + +How to install +^^^^^^^^^^^^^^ + +From within your environment, just run: + + python setup.py install + +How to run +^^^^^^^^^^ + +From within your environment, just run: + + opnfv-testapi + +This will start a server on port 8000. Just visit http://localhost:8000 + +For swagger website, just visit http://localhost:8000/swagger/spec.html + +Unittest +===================== + +Getting setup +^^^^^^^^^^^^^ + +Requirements for unittest: + +* testtools +* discover +* futures + +These requirements are expressed in the test-requirements.txt file and may be +installed by running the following (from within a virtual environment):: + + pip install -r test-requirements.txt + +How to run +^^^^^^^^^^ + +From within your environment, just run:: + + bash run_test.sh + |