Commit e1d85c42bf75f985835e2ad54fbc3a146d6b23e0
Committed by
Paulo Meireles
1 parent
9fffc62d
Exists in
master
and in
22 other branches
[Mezuro] Fized acceptance tests script to show each step when running a
single feature.
Showing
1 changed file
with
7 additions
and
3 deletions
Show diff stats
plugins/mezuro/features/run_acceptance_tests.sh
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | 2 | ||
| 3 | -MEZURO_HOME='..' | 3 | +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
| 4 | +MEZURO_HOME="$DIR/.." | ||
| 5 | + | ||
| 6 | + | ||
| 7 | +echo $MEZURO_HOME | ||
| 4 | 8 | ||
| 5 | # Ignore errors from all commands | 9 | # Ignore errors from all commands |
| 6 | trap "" ERR | 10 | trap "" ERR |
| @@ -13,11 +17,11 @@ echo "Changed Kalibro Service" | @@ -13,11 +17,11 @@ echo "Changed Kalibro Service" | ||
| 13 | if [ "$1" == "" ]; then | 17 | if [ "$1" == "" ]; then |
| 14 | rake test:noosfero_plugins:cucumber:enabled | 18 | rake test:noosfero_plugins:cucumber:enabled |
| 15 | else | 19 | else |
| 16 | - /usr/bin/ruby1.8 -S cucumber --format progress $1 | 20 | + /usr/bin/ruby1.8 -S cucumber $1 |
| 17 | fi | 21 | fi |
| 18 | #cat "$MEZURO_HOME/service.yml" | 22 | #cat "$MEZURO_HOME/service.yml" |
| 19 | 23 | ||
| 20 | -mysql -h lua -u kalibro -pkalibro2012p4ss -D 'kalibro_test' < $Mezuro_HOME/features/clean_kalibro_db.sql | 24 | +mysql -h lua -u kalibro -pkalibro2012p4ss -D 'kalibro_test' < $MEZURO_HOME/features/clean_kalibro_db.sql |
| 21 | 25 | ||
| 22 | # Change back Kalibro Service | 26 | # Change back Kalibro Service |
| 23 | echo "http://localhost:8080/KalibroService/" > "$MEZURO_HOME/service.yml" | 27 | echo "http://localhost:8080/KalibroService/" > "$MEZURO_HOME/service.yml" |