-1

I have an iphone app that uses a rails backend to grab data from. Is it possible to have a before start hook for tests that start the rails server?

moger777
  • 1,117
  • 11
  • 16

1 Answers1

0

Why not use the pre-action in the Test command? You'll need to hit that + and add the New Run Script Action.

enter image description here

The only drawback is you can't abort the test if you cannot start the test. You can see a thread about that here: Is it normal for Xcode not to detect if a pre-action failed?

Community
  • 1
  • 1
Mobile Ben
  • 7,121
  • 1
  • 27
  • 43