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:
--bundlenames your app.--set KEY=VALUEsets 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:
--forcereplaces it. - A recipe adds no runner.
mobster test,mobster verify --checkandmobster ci runrun the file as any other.
Check a TestFlight build on your iPhone
Test the build your testers have, not only the one Xcode made:mobster testflight installopens your app in the TestFlight app on the phone and taps Install or Update (App Store Connect).--build 45picks a build, and the report names it.--testflightlets your checks drive that build as your own. Mobster never clears its data on a phone.mobster asc feedback --app com.example.yourapp --crashesthen lists what your testers hit on the same build.
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, andxcrun simctlhas no option to load one. Have the app read a launch argument (here-StoreKitProducts local) and show products from your.storekitfile 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, anddialogs.purchase answers the purchase sheet iOS puts over it:
.mobster/checks/buy-annual.yaml
--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
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.