Skip to main content
Three things iOS teams test by hand before a release, written as checks Mobster runs on your simulators and your iPhones. A failure comes with its frame, its video and the reason in plain words.

Write a recipe as a check

mobster test add writes a recipe as a normal check into .mobster/checks, so you edit it and commit it like one you wrote:
  • --bundle names your app. --set KEY=VALUE sets a param of the recipe, as many times as it has.
  • A param you leave out drops the line that uses it, so the check never holds an empty value.
  • Mobster never replaces a file that exists: --force replaces it.
  • A recipe adds no runner. mobster test, mobster verify --check and mobster ci run run the file as any other.

Check a TestFlight build on your iPhone

Test the build your testers have, not only the one Xcode made:
  1. mobster testflight install opens your app in the TestFlight app on the phone and taps Install or Update (App Store Connect). --build 45 picks a build, and the report names it.
  2. --testflight lets your checks drive that build as your own. Mobster never clears its data on a phone.
  3. mobster asc feedback --app com.example.yourapp --crashes then lists what your testers hit on the same build.
In CI, the runner’s owner lists the app in MOBSTER_RUNNER_TESTFLIGHT (CI), and mobster test nightly on --device all --testflight com.example.yourapp checks it every night (Overnight runs).

Check a paywall and its prices

On a simulator a check may buy, because no money moves there. On your iPhone, Mobster never confirms a purchase. So one check asserts the plans and prices on screen, and a second check buys:
.mobster/checks/paywall.yaml
  • A simulator launched by simctl, as Mobster launches it, doesn’t load the StoreKit configuration file your Xcode scheme names, and xcrun simctl has no option to load one. Have the app read a launch argument (here -StoreKitProducts local) and show products from your .storekit file or a fixed list, so prices are the same on every run. To test with StoreKit Testing, run the check from an Xcode test plan that names the file.
  • On your iPhone, a TestFlight or development build loads products from the App Store sandbox, so the same check proves the real prices: mobster test .mobster/checks/paywall.yaml --device "Test iPhone".
  • Tagged screenshot, the same check makes the paywall’s App Store screenshot in every size and language (App Store screenshots).

Buy on a simulator

A check on a simulator may tap Buy in your app, and dialogs.purchase answers the purchase sheet iOS puts over it:
.mobster/checks/buy-annual.yaml
The sheet is answered with no model call. Run the same check with --device and Mobster stops at the sheet and reports it; a phone’s purchase is yours to confirm (What a simulator may do).

Check the screen a push opens

Apple delivers the push. Mobster checks what your app does with it: the screen its link opens. Give the payload’s deep link to a check:
.mobster/checks/push-order-shipped.yaml
To watch the banner itself on a simulator, send the payload with Xcode’s tools while the app runs:
push.apns is the JSON your server sends, with "Simulator Target Bundle" set to your bundle ID. On your iPhone, send a test push from your provider’s console, then run the check above with --device.