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 | 892a693978fa78c8091e861e246e859d20fe99c4 (patch) | |
tree | f907cedb07ce80287cb0e251ea315a65eaa5050f /utils/test/result_collection_api/run_test.sh | |
parent | 69fbbb4564539bf2aecbfd91a48825a8d8beea16 (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 'utils/test/result_collection_api/run_test.sh')
-rw-r--r-- | utils/test/result_collection_api/run_test.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/test/result_collection_api/run_test.sh b/utils/test/result_collection_api/run_test.sh new file mode 100644 index 000000000..6006fcf8b --- /dev/null +++ b/utils/test/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 |