I am currently setting a testing environment and I want to for now run my automated tests locally (I'll run then on a CI server in the near future).

I have written a script which goes into the appropriate directory and runs activator run (this is a play framework project). This is what I've included in my hooks.rb file.

AfterConfiguration do
    exec 'sh activate_ui.sh'

However, when I run my cucumber test(with ruby, no rails), the server launches and since it needs to continuously run and so, my cucumber tests never start.

How can I get around this? Is there a suggested practice?

1 Answer 1


I used osascript to open a new Terminal and run the script so it would not interfere with my cucumber test.

osascript -e 'tell application "Terminal" to do script "sh path/to/activate_ui.sh"'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.