From 48952940d5f65ff584404f78f29b854004f81a02 Mon Sep 17 00:00:00 2001 From: Tiago Ferraz Date: Mon, 30 Mar 2015 11:35:19 -0300 Subject: Added command to execute functional tests Just call go passing functional as an argument. --- service/go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'service/go') diff --git a/service/go b/service/go index 7bcc0c4b..f6a836dc 100755 --- a/service/go +++ b/service/go @@ -92,6 +92,13 @@ function runCoverageUnitAndIntegration { echo "Done." } +function runFunctionalTests { + echo "Executing Functional Tests on headless PhantomJS." + echo "You should execute it on Debian box for more similar results with CI environment." + behave --tags ~@wip test/functional/features + echo "Done." +} + if [ "$1" == 'test' ]; then set -e runPep8 @@ -121,6 +128,8 @@ elif [ "$1" == 'coverage_all' ]; then runCoverageUnitAndIntegration "${@:2}" elif [ "$1" == 'start' ]; then /usr/bin/env pixelated-user-agent "${@:2}" +elif [ "$1" == "functional" ]; then + runFunctionalTests "${@:2}" else python setup.py $* fi -- cgit v1.2.3