jackpine / biketag-ios

http://biketag.jackpine.me
1 stars 1 forks source link

Add Calabash iOS to the project #38

Closed jmoody closed 9 years ago

jmoody commented 9 years ago

Motivation

As I mentioned in an email, I needed to test some Calabash features on a Swift application. This is the fruit of that labor.

@michaelkirk From the cukes it looks like you wanted to have Calabash (or some other UI test framework).

Notes

  1. I can't standup the server so I always see an alert when the app is launched. So that is what I looked for in the "Given the game has started step." e9c3012
  2. I committed a @wip tag so this PR could be demo'd
  3. I opted to not use a separate -cal target. Instead, the calabash.framework is linked into the BikeTag target in the Debug configuration. I thought about doing something fancy like this but I have no Swift fu.
  4. I added a Makefile (!) and some bash scripts to build apps for testing.

    Cucumber

$ git pull
$ git co -t origin/feature/add-calabash-ios
$ bundle
$ be make app
$ be cucumber -t @wip

Console

$ bundle
$ be calabash-ios console
> make_app  # Compile a new .app and install it on the target simulator!
> start_test_server_in_background
> query("view marked:'Retry'")

Make

$ make app
$ make ipa
michaelkirk commented 9 years ago

@jmoody - I got the test to run. Woohoo!

But this is what I'm seeing: screen shot 2015-05-27 at 6 26 46 pm

michaelkirk commented 9 years ago

After standing up the biketag-api-dev server, it's improved somewhat...

screen shot 2015-05-27 at 6 41 21 pm