summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/__init__.py0
-rwxr-xr-xverify.sh17
2 files changed, 7 insertions, 10 deletions
diff --git a/test/__init__.py b/test/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/__init__.py
diff --git a/verify.sh b/verify.sh
index 1e0d0132..f8668e69 100755
--- a/verify.sh
+++ b/verify.sh
@@ -14,7 +14,7 @@
getopts ":f" FILE_OPTION
run_flake8() {
- echo "Running flake8 ... "
+ echo "Running flake8 for python style check... "
logfile=flake8_verify.log
if [ $FILE_OPTION == "f" ]; then
flake8 --append-config=flake8_cfg testsuites/posca/ utils/ > $logfile
@@ -33,16 +33,13 @@ run_flake8() {
fi
}
-run_tests() {
- echo "Running unittest ... "
- #will add future
+run_nosetests() {
+ echo "Running unit and coverage test ... "
+ nosetests --with-coverage --cover-tests \
+ --cover-min-percentage 100 \
+ test/
}
-run_coverage() {
- echo "Running coverage ..."
- #will add future
-}
run_flake8
-run_tests
-run_coverage
+run_nosetests