Skip to main content
Install Mobster Checks, the GitHub App, on a repository, and each mobster test pr on your Mac posts its verdict on the pull request as the check Mobster. The check shows which checks passed or failed, what each expected and found, and the command that runs a failure again. A coding agent gets the same post when it calls run_tests with pr: true. In GitHub Actions, mobster ci comment posts the check with your job’s token (next release), with no app to install (CI). Failures, warnings and notices also show as line annotations (next release).

Set it up

  1. Install Mobster Checks on your repositories: github.com/apps/mobster-checks. In Mobster, the GitHub checks card under Send results to in Connectors opens the same page.
  2. In Mobster, connect GitHub (Connectors). Mobster uses that sign-in to confirm you can push to the repository.
  3. Keep Mobster open and signed in.
Then test a pull request from its branch, with the branch pushed:
The pull request shows Mobster as in progress while the checks run, then the verdict. With Mobster for Mac open, you don’t run the command for your own pull requests (next release). In each of your projects with saved checks, on a repository with Mobster Checks installed, Mobster tests your open pull request when you open it and again whenever anyone who can push to its branch pushes to it, and posts each verdict the same way. A teammate’s pull request waits for them, or for you to run it.

The check

With Action required, you do not get a Failure conclusion for your app. You also do not satisfy a required check. You still get Failure when a check or XCTest fails and another check needs review. If a check fails and then passes on a retry of the same run, the Mobster check keeps its Success conclusion. You also get a notice for that flaky pass.

Line annotations

You get this in the next release, not in Mobster for Mac 0.4.0 or Mobster CLI 0.4.4.
You get a line annotation for each result listed below:
You get a source-line annotation only when your pull request’s diff exactly matches the check’s expectation. A match uses the same accessibility ID, the same string, or a string that matches your check’s /regex/. Mobster reads your Swift, storyboard, xib and strings files. It skips tests and previews. It does not guess from near matches. It does not read React Native or Flutter source. You see source-line annotations in your pull request’s Files changed tab. You see annotations on unchanged check files in the Checks tab. The Mobster check carries at most 50 annotations per run. In GitHub Actions, you get the same annotations from your workflow step on the job instead (CI). You see no annotations on the Mobster check. You do not need Mobster Checks installed for these annotations. You also get them on pull requests from forks. Its summary is the pull request comment: a row per check with what it expected and found, and a repro for each failure. In CI, each frame, GIF and video links to the job’s report. On your Mac, they stay in .mobster/test-results/ and the summary names them. To block merging on a failure, add Mobster as a required check in the branch’s protection rules.

Keep one comment

--github comment also keeps one comment on the pull request, updated in place on every run:
--github off posts nothing. A coding agent passes the same choice to run_tests with pr as github. In a GitHub Actions job, mobster ci run passes --github off, and mobster ci comment posts the comment and the check with your job’s token (CI).

When nothing is posted

Mobster says why in one line, and the verdict stays on your Mac: A repository that isn’t on github.com posts nothing and says nothing.

What it can do

Mobster Checks asks GitHub for three permissions: checks (read and write), pull requests (read and write, for the comment) and metadata (read). It reads no code and has no webhook. Runs start on your Mac: Mobster finds new pushes with git ls-remote and your own git credential, not through the app. To tell whether the app is installed, Mobster asks api.mobster.dev every 5 minutes for each of your projects with saved checks on GitHub, sending the repository’s name and your GitHub sign-in (next release). Its private key stays on our server, api.mobster.dev. For each post, the server checks your Mobster sign-in. It also checks that your GitHub sign-in can push to the repository. Then it gives your Mac a token for that one repository, good for an hour, which writes only checks and pull request comments. Your Mac posts to GitHub with it. The server keeps no token, and your GitHub sign-in stays in your Mac’s Keychain. The first time mobster test pr or run_tests with pr: true posts to a repository while Mobster for Mac is open, it asks you on a card: Let Mobster Checks post on GitHub? It asks once per repository until you quit the app. Without your answer within 25 seconds, nothing is posted. Another program on your Mac that reads the Mobster API token can’t get a GitHub token without you seeing it. The pull requests Mobster for Mac tests by itself (next release) post without the card: the token stays inside the app.