Onboard a new tester in 10 minutes: collections and mocks in git
On day one, a new tester asks for the request collection. On day two, for the staging address and a token. On day three, they learn the test API runs on the laptop of a colleague who’s on vacation. All of this can live in the app’s repository. A Microkoi Bench workspace is a folder of text files, and a newcomer gets it with a single git clone.
Why onboarding drags on for days
A tester’s tools live on other people’s computers. Everyone has their own request collections, and they drift apart for weeks. The mock responses for empty screens belong to one person. The test API is started by whoever wrote it.
The newcomer collects all this piece by piece over chat and spends half of the first days waiting for answers.
The workspace is a folder in the repository
Bench keeps everything that belongs to a project in a workspace, a regular folder. Create a bench folder at the root of the app’s repository and open it with “Open folder…”: it becomes a workspace. Collections, mocks and mock servers you create in Bench are saved to it as files.
mobile-app/
├── android/
├── ios/
└── bench/
├── collections/ API requests
├── environments/ Staging, Local
├── mocks/ proxy mock responses
├── cases/ Empty list, Server 503
├── mock-servers/ test API on port 9091
├── monitors/ staging checks
└── notes/ Getting started.mdA request is a file, a mock is a file, a mock server endpoint is a file, and the response body sits next to it. You read them, compare them in code review and merge them like code.
What goes to git and what stays on your computer
Bench doesn’t touch the repository’s root .gitignore: the exclusion rules live in the .microkoi service folder inside the workspace.
| In git | Only on this computer |
|---|---|
| Collections and environments | Recorded traffic and send history |
| Mocks and cases | Which case is active |
| Mock servers with their endpoints | Which servers are running |
| Monitors and notes | The selected environment |
| Recording rules | Workspace trust, breakpoints |
The tools are shared, while traffic, the environment choice and running servers are personal. A commit won’t start a mock server on someone else’s computer.
Tokens go in a personal environment
Environment values are stored in files as plain text. The “Hide value” button hides them on screen but doesn’t encrypt them. So the shared “Staging” environment holds the token of a shared test user, and personal tokens go in a “Personal” environment excluded from git:
# .gitignore at the repository root
bench/environments/Personal.environment.jsonThe first ten minutes
| Minute | What the newcomer does |
|---|---|
| 0 | Clones the repository |
| 1 | Installs Bench and opens the bench folder |
| 2 | Looks through the workspace and clicks “Trust workspace” |
| 4 | Installs the root certificate |
| 5 | Selects the “Staging” environment and sends a request |
| 7 | Starts the mock server |
| 9 | Makes the “Empty list” case active |
Why Bench asks about trust
The first thing the newcomer sees is a bar above the sections: “This workspace is opened on this computer for the first time. Mock servers and monitors won’t start on their own until you trust it.” Someone else prepared the contents, and until you’ve looked at them, Bench starts nothing on its own. Everything works when you start it manually.
The trust decision is stored on the computer, not in the repository, so it can’t be committed.
“Trust workspace” starts only the mock servers that have already run on this computer. A new machine has none, so the first time you turn the server on manually. After that, Bench starts it every time the workspace opens.
Cases instead of preparing accounts
An empty task list on staging needs an empty account, and someone has to prepare it. A case does this with a file: “Empty list” overrides the list response with an empty array, “Server 503” with an error. One case is active, or none, and switching takes effect immediately.
The newcomer makes the case active and opens the app on the emulator: the screen with no tasks, on the first try. Which case is active doesn’t go to git, so it won’t break anyone else’s testing.
A “Getting started” note
Put a Markdown note in the workspace: which environments exist, which cases go with which screens, how to connect a phone, whom to ask about staging. The “Request” button in the note header inserts a link to a request. The link is tied to the request ID, so it survives renaming and moving to another folder.
Changes arrive with git pull
A tester added a case for overdue reminders and sent it for review along with the bug report. A developer runs git pull, and the case shows up in their Bench a second or two later: the app watches the workspace folder and picks up changes without reopening it.
Only one thing stays personal: the root certificate. It’s unique to each installation, and its private key never leaves the computer. So everyone installs the certificate themselves, on the computer and on their test phone, by QR code for the phone.
Put your project’s workspace in git with the beta and write to beta@microkoi.com: how long onboarding took and what you still had to explain in words. We read every email.