How a check goes
1
Your CI sends the pull request
The command uploads the builds you pass, sends the text and images, and prints the report link. One check exists per app and pull request: sending the same pull request again adds a new push to it.
2
Mini plans the checks
In a minute or two, Mini reads your text and images next to what it already knows: the scenarios of your suite, the app’s Memory, your test accounts and the open Issues. It writes a plan in two groups: The change, at least one check per behavior the pull request describes, and Impact, a few checks on what the change could break, each saying why. Every check has concrete steps and the outcome Mini expects.
3
Mini tries the change on each platform
With both builds, iOS and Android run at the same time, each on its own device with its own recording. Every check gets a verdict per platform, what Mini expected, what it saw, and the moment in the recording. This part takes about 20 minutes.
4
The verdict ends the job
The command prints the verdict, writes the report and exits. Your CI doesn’t wait for anything else.
5
Mini prepares the suite changes
After the verdict, Mini drafts the scenario changes this pull request calls for and holds them until you say whether it merged. See When the pull request merges or closes.
Before you start
One platform is enough. With only an Android build, Mini tests Android and the report shows no iOS column, rather than a failed one.
minitest pr check
What Mini reads
- The context file is what Mini tests against, so put the ticket’s acceptance criteria in it, not only the description. A file over 10,000 characters is refused with an error and nothing is sent: shorten it yourself and keep the criteria.
- Attachments can be
png,jpg,gif,webporpdf, up to 10 MB each. Any other file, or a larger one, is skipped with a warning and the check goes on. Mini uses a mockup to know what the screen should look like. - Commits are optional. They help Mini pick what to re-check on a later push.
Verdicts and exit codes
When
--timeout is reached, the check itself keeps running: open the report, or run minitest-cli pr wait <pr> to get the final code.
Each check has its own verdict on each platform:
A question doesn’t hold up the rest: Mini goes on with the other checks and marks the unclear one as waiting for an answer. Answer it in the check’s draft, from Open the session on the report. On the next push, Mini re-tests that check first, with your answer.
A device problem on our side marks that platform’s checks as errored, never as passed. If nothing could be tested at all, the verdict is
errored.
On GitHub Actions
Use this workflow when your code is on GitHub but Minitap isn’t installed on the organization. It builds the app, writes the pull request text to a file, and runs the check..github/workflows/minitap-pr-check.yml
::group::), an error annotation per critical check (::error::), and the Markdown report on the job’s summary page ($GITHUB_STEP_SUMMARY).
Keep timeout-minutes well above the length of a check. Mini needs about 20 minutes to try the change, plus the build upload.
Pass the pull request text safely
Anyone who opens a pull request writes its title and description. Treat both as untrusted input: they must reach the CLI as data, never as part of a command. Three rules cover every CI:- Pass the fields through environment variables. On GitHub Actions, map them in
env:as in the workflow above; the shell then reads them as plain values. - Write long text to a file and give the file to the CLI:
printf '%s\n' "$PR_BODY" > pr.md.printf '%s'writes the text as it is, whereechomay read backslashes and leading dashes. - Quote every variable:
--title "$PR_TITLE", never--title $PR_TITLE.
sh "…${env.CHANGE_TITLE}…" step with double quotes, Groovy pastes the title in before the shell runs. Use single quotes so the shell reads $CHANGE_TITLE itself, as in the Jenkins example below.
Any other CI
Commit this script asci/pr-check.sh. It reads everything from environment variables, so each CI only maps its own names to them.
ci/pr-check.sh
- GitLab CI
- Jenkins
Add
MINITEST_API_KEY as a masked variable in Settings → CI/CD → Variables. The job runs on merge request pipelines, and the shell reads GitLab’s variables at run time..gitlab-ci.yml
A new push
Run the same command on every push. The pull request keeps one check and one report, and each push is added to it. If the previous push is still being checked, it’s cancelled. Mini doesn’t start from scratch:- Checks that were critical, had a warning or waited for an answer are re-tested first.
- Checks in the areas the new commits name, or that the changed description touches, are re-tested too, and new criteria get new checks.
- The rest keep their result from the earlier push.
--full to re-run every check on this push.
When the pull request merges or closes
After the verdict, Mini drafts the suite changes the pull request calls for: scenarios to edit, new scenarios, scenarios to delete. Each change links to its proof, the check and the moment in the recording, and Mini checks it once on a device. A new push updates these changes instead of adding new ones. Nothing reaches your suite until your CI says how the pull request ended:
Run them from the pipeline that runs on merge, and from whatever your CI does when a pull request is declined. None of this holds up the check job, which ended with the verdict.
The report
The link the command prints first opens the full report in the dashboard:--report-file puts the verdict first, then a table of checks by platform, details for each check that didn’t pass with links into the recording, and the report link last.
Set up for a team without GitHub access
This walkthrough fits a team whose code lives outside Minitap’s reach, with tickets in Jira and a CI like Bitrise or Jenkins that already builds both apps for each pull request.1
Store the API key
Create a workspace API key in Settings → API keys and store it as a secret in your CI, named
MINITEST_API_KEY. Add MINITEST_APP_ID next to it.2
Build both apps for the pull request
Have the pull request pipeline make an iOS simulator
.ipa and an Android .apk (or .aab) from the pull request’s commit. Mini tests exactly what you upload.3
Put the ticket key in the title
Start the pull request title with the Jira key, like
SHOP-231 Resume playback where the listener left off. The report shows the key, and your QA team can find the check from the ticket.4
Write the context file
Write the description and the ticket’s acceptance criteria to
pr.md, as in the example below. Numbered criteria give the clearest plan: Mini writes at least one check for each.5
Attach the mockups
Export the design frames for the change as PNG files into a folder, here
pr-assets/, and the script attaches them. Mini compares the screens it reaches with them.6
Add the check step
Commit
ci/pr-check.sh and call it after the build step, with the pull request number and title mapped to PR_NUMBER and PR_TITLE and the build paths to IOS_BUILD and ANDROID_BUILD. Follow the safety rules for the title and description.7
Report merges and declines
In the pipeline that runs after a merge, call
minitest-cli pr merged <pr>. When a pull request is declined, call minitest-cli pr closed <pr>.8
Try it on one pull request
Open the report link from the job log. Check that the plan covers each criterion, then watch a check or two in the recording before you let the job block merges.
pr.md
Next steps
Run in CI
Run the whole suite from your pipeline and gate a release on it.
API keys
Create and revoke the keys your CI signs in with.
Workbench
Where the suite changes from a check wait for review.
Issues
The open Issues a check marks as known.
