Commit 9fffc62d755db0dd49c73892dab4ce766120b709
Committed by
Paulo Meireles
1 parent
39e1ba90
Exists in
master
and in
29 other branches
[Mezuro] Adding script to run acceptance tests
Showing
2 changed files
with
36 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,10 @@ | @@ -0,0 +1,10 @@ | ||
1 | +Delete from kalibro_test.RANGE; | ||
2 | +Delete from kalibro_test.METRICCONFIGURATION; | ||
3 | +Delete from kalibro_test.CONFIGURATION; | ||
4 | +Delete from kalibro_test.METRICRESULT; | ||
5 | +Delete from kalibro_test.MODULE; | ||
6 | +Delete from kalibro_test.MetricResult_DESCENDENTRESULTS; | ||
7 | +Delete from kalibro_test.NativeMetric_LANGUAGES; | ||
8 | +Delete from kalibro_test.PROJECTRESULT; | ||
9 | +Delete from kalibro_test.PROJECT; | ||
10 | +Delete from kalibro_test.NATIVEMETRIC; |
@@ -0,0 +1,26 @@ | @@ -0,0 +1,26 @@ | ||
1 | +#!/bin/bash | ||
2 | + | ||
3 | +MEZURO_HOME='..' | ||
4 | + | ||
5 | +# Ignore errors from all commands | ||
6 | +trap "" ERR | ||
7 | + | ||
8 | +# Change Kalibro Service | ||
9 | +echo "http://localhost:8080/KalibroTest/" > "$MEZURO_HOME/service.yml" | ||
10 | +echo "Changed Kalibro Service" | ||
11 | + | ||
12 | +# Run acceptance test | ||
13 | +if [ "$1" == "" ]; then | ||
14 | + rake test:noosfero_plugins:cucumber:enabled | ||
15 | +else | ||
16 | + /usr/bin/ruby1.8 -S cucumber --format progress $1 | ||
17 | +fi | ||
18 | +#cat "$MEZURO_HOME/service.yml" | ||
19 | + | ||
20 | +mysql -h lua -u kalibro -pkalibro2012p4ss -D 'kalibro_test' < $Mezuro_HOME/features/clean_kalibro_db.sql | ||
21 | + | ||
22 | +# Change back Kalibro Service | ||
23 | +echo "http://localhost:8080/KalibroService/" > "$MEZURO_HOME/service.yml" | ||
24 | +echo "Changed back Kalibro Service" | ||
25 | +#cat "$MEZURO_HOME/service.yml" | ||
26 | + |