Skip to main content

Run it

box builds the tests once, then runs them on each device in turn, each with its own result bundle. At the end it prints one table:
  • Name 1 to 6 devices, separated by commas. box devices lists the simulators the Mac has. A device type the Mac knows but has no simulator for (such as iPhone SE (3rd generation)) is made on the newest iOS runtime for this job and deleted afterwards.
  • A device the Mac cannot provide gets a not_available row. The other devices still run.
  • The job’s result is the worst row: a failed test fails the job (exit 1), then a device that was not available (exit 2). A device that could not start is a box machine problem (exit 75, not billed).
  • --devices goes with --only-testing, --locale, --dark, --text-size, --location and --network, which apply on every device. It does not go with --device or --screenshot.
  • With --json, the table is one {"t": "matrix", "devices": [...]} line. Each row has device, runtime, result, passed, failed, skipped, seconds and failures.
  • Each device’s result bundle is saved as test-<n>.xcresult.zip, and the rows as matrix.json.
In MCP, the test tool takes devices as a list of names.

What it costs

The job’s normal minutes: one build, then the test time on each device.