Skip to main content
When to use it.
  • Before you push, to know the tests pass on iOS
  • After your agent changed code, so it can see its own failing test and fix it

Run the tests

box test running the Tally unit and UI tests on a fresh simulator

Job bj_NWidfRUrt0Hz0o0a on the production Mac: 180 s billed, $0.15

When a test fails

Here one test expects the counter to start at 1 while the app starts it at 0. box prints the count, then each failing test with the assertion message, and exits with 1
Job bj_aDxtZUJUe0bpuoFx on the production Mac: 180 s billed, $0.15
The file and line of the failure are in why.txt; see Why it failed. test-summary.json holds the same counts for a script, and test.xcresult.zip opens in Xcode

Tests and a picture in one job

--screenshot launches the app after the tests in the same job and saves what the simulator showed
The example app on an iPhone simulator after the tests: Hello from box, Count: 0, and the minus and Add buttons
This is out.png from that job, made smaller for this page
Job bj_19x_hL2PNV9uyDUY on the production Mac: 60 s billed, $0.05

Run one test

When the test runner never started on the Mac (a simulator problem on our side), box exits with 3, not 1: your code did not fail