Skip to main content
A project is your app’s folder on your Mac, usually a git repository. Mobster reads it each time you look: the app it builds, the checks in .mobster/checks, the simulators in .mobster/matrix.yaml, the workflow files in .mobster/workflows and the branch you’re on. The folder is the source of truth. Mobster keeps only its location, its name, when you opened it, the scheme that builds it on this Mac, and whether it tests your pull requests. The mobster command finds a project on its own: it walks up from where you run it to the folder that holds .mobster/ (The project folder).

Use projects in Mobster for Mac

You get this in the next release, not in Mobster for Mac 0.4.0 or Mobster CLI 0.4.4.
Each project has a row under Projects in the sidebar. Projects in ⌘K lists them all, the one you opened last first, each with its app’s icon, its folder, its branch, how many checks it has and how the last mobster test went.

Add a project

  1. Open Projects and choose Add project, or choose Add a project in ⌘K.
  2. Pick one of three ways:
    • Import from GitHub: your repositories, private ones too, the one you pushed to last first. Type to find one, then choose Import. It needs GitHub connected in Connectors.
    • Open a folder: choose Choose folder… and pick the folder with your Xcode project or Expo app.
    • Clone a repository: paste its URL and choose Clone. A clone or an import goes in ~/Mobster/Projects, with a bar that shows how far git got.
  3. The project opens.
The folders where you ran mobster test on this Mac are under Recent folders, each with Add. When Mobster refuses a folder or a URL, the line under the field says why and what to choose instead.

Read a project’s page

  • Under the project’s name: your app, Runs on (where Run checks runs next), the branch with its changed files and commits ahead on this Mac, the folder, and your repository.
  • Checks lists each check in .mobster/checks with its last 20 results as dots, newest at the right. Flaky shows when its history says so, and a check that never ran says Not run yet. A check that failed in the newest run leads the page instead. Show in Finder on a check shows its file. Copy the Terminal command, in the title’s More menu, copies the command that runs them all.
  • Import Maestro flows above Checks imports your .maestro folder as checks (Moving from Maestro).
  • Run checks builds the app from the folder as it is and runs every check (Run checks). A project with no checks offers Set up checks instead.
  • Runs by branch groups the project’s mobster test runs by branch, three each, yours first, with a link to the branch’s pull request when GitHub is connected. When every run is on one branch with no pull request, the runs are one list. Each check the newest run didn’t pass leads the page: why in one sentence, its expectations, the screen it was judged on, its steps, and its log and crash. Run again under them reruns only those checks.
  • Schedules lists the schedules in .mobster/schedule.yaml and in check files (Scheduled health checks). With no schedule yet, Run every night adds a 2:00 AM schedule, Change schedule sets its days and time, Run now runs it, and the switch turns it off on this Mac only. Saving rewrites the file and drops its comments. Schedules run while Mobster is open and your Mac is awake.
  • Workflows lists each file in .mobster/workflows with its workflow, and says when one is out of step (Keep workflows as files).
  • Show in Finder opens the folder. Remove from Mobster… asks first, then forgets the project and leaves the folder where it is.

Set up checks

Set up checks writes two files and changes nothing else:
  • .mobster/.gitignore, unless there is one, which keeps runs, builds and test results out of git.
  • .mobster/checks/app-opens.yaml, a check for the project’s app:
It passes when the app opens, stays in front, doesn’t crash and shows something with a label. It needs no model and no key. Edit it like any check (Checks). Mobster never writes over a file. It refuses a project that already has checks (has_checks), one whose .mobster or .mobster/checks is a link (linked), a folder with no Xcode project or Expo app (no_app), and an app whose bundle ID it can’t read (no_bundle). For those, mobster test add smoke --bundle YOUR.BUNDLE.ID writes one.

Run checks

Run checks is mobster test with a build first:
  1. Mobster builds the app the way mobster test pr does: the Xcode project’s scheme for the simulator, or an Expo app’s Release build, into .mobster/build.
  2. Every check runs on the simulators in .mobster/matrix.yaml, else on the simulator its file names, else on an iPhone simulator on the newest iOS. The menu beside Run checks picks one simulator, a plugged-in iPhone, or the checks with one tag. An iPhone runs them only while you’re signed in and no task holds it.
  3. The results go in .mobster/test-results, and the page shows them under Runs by branch. A failed build shows its first errors.
Stop ends the build and every process it started, and finished checks keep their results. One run per project goes at a time, two projects at most, and a run that fails never restarts by itself.
You get this in the next release, not in Mobster for Mac 0.4.0 or Mobster CLI 0.4.4.
Run checks builds your project’s only Xcode scheme, or the one named like your project. Otherwise it asks you to pick one on the project’s page and click Build and run. Mobster saves your choice on this Mac, outside your repository, and Forget scheme clears it.
You get this in the next release, not in Mobster for Mac 0.4.0 or Mobster CLI 0.4.4.
Run failed checks, in the menu beside Run checks, builds the app and reruns the check files that didn’t pass in the newest finished run, as they are now, on the devices chosen for this run. It skips XCTest cases and deleted checks. mobster test --failed does the same in a terminal.

Test your pull requests on GitHub

When a project has saved checks and its origin is a GitHub repository with Mobster Checks installed, Mobster tests your own open pull requests on it, with nothing to set up. It runs the watcher mobster test pr --watch runs (Test every pull request on this Mac): each pull request runs when you open it and on every push, in its own worktree, and its verdict goes on the pull request as the check Mobster.
  • Yours means opened by the GitHub account you connected in Connectors, whoever pushed. A teammate’s, a bot’s, a closed one and one from a fork wait. To test one that waits, read its changes, turn the project off, run mobster test pr --watch --allow N in its folder, then turn the project on again.
  • The scheme is the one the project saved in Run checks, else its only scheme, else the one named like it. When none fits, the check Mobster says the build failed. Choose a scheme in Run checks once, and the next pull request builds it.
  • Mobster Checks must be installed. Mobster asks api.mobster.dev at start and every 5 minutes, with the repository’s name and your GitHub sign-in. It needs you signed in to Mobster with a plan or trial, and push access to the repository. Nothing runs until the answer is yes, and a no stops the watcher.
  • One at a time. One pull request runs at a time on this Mac, and two projects on one repository share one watcher. Run checks and mobster test pr in a terminal run beside them.
  • Stopping. Turning the project off or removing it stops its watcher. Quitting Mobster stops the run in flight, and its check on GitHub says Stopped.
Every project has it on until you turn it off with {"on": false}:
{"on": true} turns it on again, and needs Mobster for Mac’s own session, so a program with the API token can turn it off but not back on. A project’s pullWatch says where it stands:

What Mobster reads from the folder

Reading a folder never writes to it. Mobster runs git with no terminal prompt, no index lock and no fsmonitor hook, so your own git keeps working and a folder’s git config can’t make Mobster run a program. Mobster writes in a project only what you ask for: the files Set up checks adds, a schedule you add in .mobster/schedule.yaml, builds in .mobster/build, and its workflow files. A pull request builds in a worktree in the cache folder, and git keeps that worktree’s record and the fetched branches in the project’s .git. A file in your repository never names a real iPhone, and secrets never go in .mobster/.

Add a folder over the API

Send the folder’s full path. ~ works.
A .mobster folder means the folder that holds it. A folder that is a project already opens it and answers 200 instead of 201. Mobster keeps up to 100 projects. When a project’s folder moves or is deleted, its state is missing until you remove it.

Clone a repository

Send the repository’s URL: https or SSH, github.com/owner/name, or owner/name for GitHub. Mobster clones it into ~/Mobster/Projects/<name>, or into the folder you name, and adds the clone as a project when git is done. name sets the folder the clone makes.
GET /api/projects/clones/{id} answers how far it got: git’s phase, a percent from 0 to 100, and a state that becomes done with the new projectId, or failed with a code and a sentence. Mobster clones with your Mac’s git sign-in, or, for github.com over https, your GitHub connector’s, so a private repository clones too. The connector’s token goes to github.com only, never into the command, the URL, a log or .git/config. A URL with a password or token in it is refused (credentials_in_url). A clone never asks for a password, and a clone that fails is never retried by itself: A clone that fails or is stopped (DELETE /api/projects/clones/{id}) removes the folder it made, and only that folder. Mobster runs at most three clones at once.

Keep workflows as files

A project’s workflows can live in its repository, as .mobster/workflows/<name>.yaml, so a pull request shows a change to one as it shows a change to code. Mobster keeps each file and its workflow in step both ways, and looks every 1.5 seconds.
The file is the workflow’s graph (The graph), written to read well in a diff. Conflicts. If the file changes while the workflow has an unpublished draft, nothing is overwritten. The project’s page shows Conflict until you choose Keep the file (your draft stays in Versions) or Keep Mobster’s (your draft is published over the file). Over the API: POST /api/projects/workflows/{workflowId}/resolve with {"keep": "file"} or {"keep": "mobster"}. On the canvas. (next release) The file’s name shows beside Publish. When the file changes under your edits, the canvas says The file changed, with Reload and Keep editing. Only Publish writes the file. A workflow with no file offers Keep it in a project. What stays on your Mac. The workflow’s phone, profile, destination, schedule switch and pinned test data never go in the file. A workflow that runs on one named iPhone, or holds what looks like a key, a password or a card number, isn’t written: its file shows blocked and says why. POST /api/projects/{id}/workflows {"workflowId"} gives a workflow a file. Each workflow’s file in GET /api/workflows says how it stands: synced, pending, conflict, missing, invalid or blocked.

Start tasks in a project

A task belongs to a project when it starts with the project’s id: POST /api/runs takes "project": "<id>", and the task keeps project in its extras as {id, path, name}. Memory learns and recalls a project’s facts under its id (Memory), and a project’s workflows start tasks that belong to it.

Remove a project

DELETE /api/projects/{id} makes Mobster forget the project. The folder and everything in it stay where they are, and its workflows stay in Mobster without their files. Its schedules stop on this Mac until you add it again or run mobster test in the folder, and its runs leave Test results.

API

The events project_added, project_opened, project_removed, project_changed, clone_changed, clone_ended, run_changed and run_ended arrive on the projects topic of GET /api/events. project_changed also arrives within 2 seconds when a suite started outside the project page ends in the project’s folder (the editor extension, mobster test, mobster mcp, CI), and each time done changes in the suite the editor extension runs there. Scripting shows how to send a request.