diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-05-17 21:05:27 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-05-17 21:12:20 +0800 |
commit | d719f7428de763767b491b983ce214c329ba37b1 (patch) | |
tree | c5b4e7593d2223eed50581ec278ca20b010c076f /result_collection_api/run_test.sh | |
parent | f91356cf045f03f2c318821dd087f05670abb892 (diff) |
add unittest framework for supporting unittest in testAPI
usage is shown in utils/test/result_collection_api/README.md
JIRA: FUNCTEST-251
Change-Id: I788417e296c153cc485f4a4064697bdafc394e5b
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'result_collection_api/run_test.sh')
-rw-r--r-- | result_collection_api/run_test.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/result_collection_api/run_test.sh b/result_collection_api/run_test.sh new file mode 100644 index 0000000..6006fcf --- /dev/null +++ b/result_collection_api/run_test.sh @@ -0,0 +1,10 @@ +#! /bin/bash + +# Before run this script, make sure that testtools and discover +# had been installed in your env +# or else using pip to install them as follows: +# pip install testtools, discover + +find . -type f -name "*.pyc" -delete +testrargs="discover ./tests/unit" +python -m testtools.run $testrargs
\ No newline at end of file |