summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Ferraz <tiago.ferraz@gmail.com>2015-03-30 11:35:19 -0300
committerTiago Ferraz <tiago.ferraz@gmail.com>2015-03-30 11:35:19 -0300
commit48952940d5f65ff584404f78f29b854004f81a02 (patch)
tree993439f783a47828419c621b31b610a491a1e6c8
parentf73a010925338f149410172c33df113947c371fc (diff)
Added command to execute functional tests
Just call go passing functional as an argument.
-rwxr-xr-xservice/go9
1 files changed, 9 insertions, 0 deletions
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