calabash / calabash-ios-server

An embedded HTTP server for performing queries and test automation
Other
87 stars 82 forks source link

Increment LPTestTarget CFBundleVersion for every build #352

Closed jmoody closed 8 years ago

jmoody commented 8 years ago

Motivation

I want to be able to support this use case:

Given I testing against a physical device
And the app I am testing is already installed
When the installed app version is different than the .ipa I have on disk
Then I want Calabash to install the .ipa from disk

On iOS Simulators, we do a checksum to determine if an installed .app is stale. This is not possible on physical devices; the only information about an app we can get is from the Info.plist. The idea is to ask "Are the versions of the installed app and the app on disk the same?" and reinstall if the answer is, "No.".