Sharing the test project until a second person runs it

in Japanese(日本語)

The steps for sharing the scenarios and profiles you made through git, until a second person runs them on their own Mac. It assumes you have a work folder where you finished the Quick start.

1. Check what goes into git and what does not

Open the .gitignore of the work folder (the folder that holds Package.swift).

Prompt for the AI

Show me the contents of this work folder's .gitignore. List the files that go into git and the files that do not.
If you do it manually (click to show details)
cat .gitignore
git status --short

Expected result:

.build/
.fleetest/
TestProjects/*/reports/
TestProjects/*/results/
TestProjects/*/workspace/apps/
Goes into git Stays out of git (the first five are excluded by .gitignore)
Package.swift .build/ (build products)
TestProjects/<project>/scenarios/ (scenarios) .fleetest/ (state of this Mac)
TestProjects/<project>/profiles/ (app and run profiles) TestProjects/*/reports/ (Markdown reports; they contain screen text)
TestProjects/<project>/dataset/ (test data that may be shared) TestProjects/*/results/ (result JSON and recordings; recordings show screen text)
TestProjects/<project>/vision/ (image samples, if any)
TestProjects/<project>/workspace/data/ (seed files used by run-setup.sh, no secrets)
TestProjects/<project>/docs/ (if present)
TestProjects/*/workspace/apps/ (the app bundles are copied there on every run)
TestProjects/<project>/workspace/scripts/compose.yaml (server declarations; Services the app depends on) .mcp.json (contains absolute paths, so it differs per Mac; it is not added to .gitignore automatically, so do not git add it or add it yourself)
The contents of ~/.config/fleetest/ (outside the work folder, so never in git to begin with)
.vscode/settings.json, .claude/settings.json (contain the absolute path of the clone; if you do commit them, the second person rewrites them to their own path)

2. Commit and push

When the clone sits next to the work folder, the .package(path:) in Package.swift is written as the relative path ../fleetest (this assumes the second person also clones it next to the work folder). If you put the clone elsewhere, it is an absolute path (/Users/<you>/...), so change it before you commit to a form that resolves on the second person's Mac.

Prompt for the AI

If the .package(path:) in Package.swift is an absolute path, change it to ../fleetest. Pick only what should go in from git status and commit it. Leave out results/, reports/ and workspace/apps/. Don't push yet; show me what the commit contains.
If you do it manually (click to show details)
git add Package.swift .gitignore TestProjects/*/scenarios TestProjects/*/profiles TestProjects/*/workspace/scripts TestProjects/*/dataset TestProjects/*/vision TestProjects/*/docs TestProjects/*/workspace/data   # git add errors on paths that do not exist, so add only the ones you have
git status --short           # confirm reports/ and results/ are not included
git commit -m "Add fleetest test project"
git push

Once you have checked the contents, tell it to push.

3. The second person clones and sets up

The second person clones the repository on their own Mac and opens it in VSCode. Each person has their own clone of fleetest, so they set up with the same prompt as step 3 of the Quick Start.

Prompt for the AI

Clone https://github.com/wave1008/fleetest next to this folder and
set it up following ../fleetest/.claude/skills/fleetest-setup/SKILL.md.
If you do it manually (click to show details)
../fleetest/.build/debug/fleetest project list

If you did not share Package.swift, run project sync first. It scans TestProjects/ and regenerates the marker section of Package.swift (also needed after a manual copy or a git pull; "Managing projects" in Creating a test project).

../fleetest/.build/debug/fleetest project sync

When setup is done, check that the .package(path:) in Package.swift points at your own clone (../fleetest if you cloned it next to the work folder).

Expected result:

4. Prepare the second person's devices

When there are several projects, pass --project to every command (omitting it picks project1).

A run profile's devices point at devices by name. An iOS Simulator is looked up by name (the Simulator's own name) and osVersion, and an Android device by avd ("Devices" in Profiles). fleetest run does not create a device it cannot find. If the second person's Mac has no Simulator with the same name and OS, iOS stops with simulator not found: <name>(<OS>) followed by the names of the Simulators on that Mac. Android tries to start that AVD, fails three times (this takes a few minutes), then stops with no running emulator for AVD "<avd>" followed by the Emulators that are running (the Emulator's own log says Unknown AVD name).

There are two ways to fix it.

Prompt for the AI

In the fleetest test project <project>, create my own run profile ios-run-mine that uses the shared ios-app app profile. Use the app ID already in ios-app.
For the device, pick the newest-OS Simulator available on this Mac.
If you do it manually (click to show details)
../fleetest/.build/debug/fleetest profile setup --project <project> --platform ios --app-id <same value as ios.app in ios-app.json> \
  --app-ref ios-app --run ios-run-mine --auto-device
../fleetest/.build/debug/fleetest profile list

--auto-device picks a Simulator / Emulator that fits this Mac, creating one if there is none. The app profile's appPath is the location of the built app, so check that it is found at the same path on the second person's Mac too (if not, the second person builds the app and adjusts the path).


5. The second person runs it

Prompt for the AI

In the fleetest test project <project>, run all the scenarios with the ios-run-mine profile.
If you do it manually (click to show details)
../fleetest/.build/debug/fleetest run --project <project> --profile ios-run-mine

The following belong to that Mac and are not shared. The second person prepares them themselves.

6. Two people use the same runner machine

A runner machine runs only one run at a time. When two people submit at once, the later one can either wait or fail. Try it. Two people ask their AI assistants at nearly the same time (M1Max is the name of a registered runner machine).

Prompt for the AI

In the fleetest test project <project>, run all scenarios with the ios-run profile on M1Max. If M1Max is in use, wait in line for up to 10 minutes.
If you do it manually (click to show details)

In two terminals, type the following at nearly the same time.

../fleetest/.build/debug/fleetest run --project <project> --profile ios-run --runner M1Max --wait-lock 600

Expected result:

You can see who is using it in the LOCK column of fleetest remote status --runner M1Max. To have your name appear in these displays, write issuerId in ~/.config/fleetest/config.json. How to wait, how to release a lock, and the settings are in "Sharing one runner between several people" in Remote runs. Adding a runner machine is covered in Adding a Mac.

7. Review scenarios the AI wrote

Scenarios you share are checked by a person even when the AI wrote them. The points to look for are the headings of Writing robust scenarios. The body text is there. Making the list is something you can ask the AI to do.

Prompt for the AI

Review the fleetest scenarios against the guidance for writing robust scenarios and list what should be fixed. Do not fix anything until I have checked the list.

Next