Commit bfd5375ba60f93a7fedcf9c8d19c95839d9e7515
Committed by
Paulo Meireles
1 parent
4b59a860
Exists in
master
and in
22 other branches
[Mezuro] Draft to tests with monkey server
Showing
7 changed files
with
32 additions
and
10 deletions
Show diff stats
features/support/hooks.rb
| 1 | Before('@mezuro') do |scenario| | 1 | Before('@mezuro') do |scenario| |
| 2 | - command = "#{RAILS_ROOT}/plugins/mezuro/features/initialize_monkey_server.sh \"#{scenario.name}\"" | 2 | + command = "#{RAILS_ROOT}/plugins/mezuro/features/monkey-server/call_monkey_server.sh \"#{scenario.name}\"" |
| 3 | system command | 3 | system command |
| 4 | end | 4 | end |
| @@ -0,0 +1,11 @@ | @@ -0,0 +1,11 @@ | ||
| 1 | +#!/bin/bash | ||
| 2 | + | ||
| 3 | +MONKEY_SERVER_ADDRESS="localhost" | ||
| 4 | +MONKEY_SERVER_PORT=50688 | ||
| 5 | + | ||
| 6 | +# Ignore errors from all commands | ||
| 7 | +trap "" ERR | ||
| 8 | + | ||
| 9 | +exec 5<>/dev/tcp/$MONKEY_SERVER_ADDRESS/$MONKEY_SERVER_PORT | ||
| 10 | +echo "SCENARIO $1" >&5 | ||
| 11 | +echo "Calling monkey-server in Scenario $1" |
plugins/mezuro/features/creating_project.feature
plugins/mezuro/features/initialize_monkey_server.sh
plugins/mezuro/features/monkey-server/call_monkey_server.sh
0 → 100755
plugins/mezuro/features/monkey-server/initialize_monkey_server.sh
0 → 100755
plugins/mezuro/features/monkey-server/terminate_monkey_server.sh
0 → 100755