X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=verify.sh;h=f8668e69569c74b1b9f5d6589f9e20b88190e350;hb=cbd8645b9d529ce26535f0bb9553892c3fce4dc0;hp=1e0d01320642c04cc95e25c032a2935b991081a3;hpb=97a77626cc17fb372a78ddfc78a66e483315b864;p=bottlenecks.git 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