Checking what a test leaves behind

in Japanese(日本語)

Running a test leaves reports, results, logs and recordings on your Mac's disk. They contain the text on the app's screen (button labels, values you typed, body text that was shown). This page walks through opening what is left to see where it is, masking secrets, checking the contents before you send anything out, and deleting what you no longer need. It assumes you have finished the Quick start up to step 7 (creating one scenario and running it).

fleetest itself does not send the data a test run leaves outside your Mac and devices (except what a scenario sends to sandbox.allowedDomains and what moves between Macs in remote runs). When you have an AI assistant run tests or read results, the output you give it (including screen text) is sent to that assistant's model provider. FM runs only on the Mac. See "Privacy" in Quality characteristics and Network exposure and security.

1. Run one scenario

Run the scenario you created in the Quick Start.

Prompt for the AI

Run the scenario I created in the Quick Start on iOS.
If you do it manually (click to show details)
../fleetest/.build/debug/fleetest run --profile ios-run

2. Open what was left

Every run adds files in these places (<project> is project1 or similar).

Where What Screen text
TestProjects/<project>/reports/ A Markdown report per scenario (scenario-*.md). On a failure it also holds the element list at the moment of failure and a screenshot (.png), and .failure.json (the element list at failure, read by the VSCode extension; masking applies) Step descriptions contain labels and the values you typed. The element list is the screen text itself
TestProjects/<project>/results/runs/<month>/<runID>/ run.json, scenarios/<scenarioID>.json (result JSON) and events/<scenarioID>.ndjson (the scenario's execution log) The execution log contains step descriptions and print() output
TestProjects/<project>/results/runs/<month>/<runID>/recordings/ A recording per scenario Every character visible on the screen

The full list of what goes where is in Test result files, and how to read the result JSON is in Analyzing results (fleetest results, dashboard).

Prompt for the AI

List where the files from this run were left. Open one report and show me the lines in the step descriptions that contain text from the app's screen.
If you do it manually (click to show details)
ls TestProjects/project1/reports/ | tail -3
ls -d TestProjects/project1/results/runs/*/* | tail -1
../fleetest/.build/debug/fleetest results log latest

results log latest prints the per-scenario execution log of the latest run. The step lines show the labels that were tapped and the text that was typed. A report reads fine when opened in VSCode.


Expected result:

3. Mask secrets

Secrets a scenario uses, such as a login password, can be masked in the strings that appear in reports when you read them with account() (Test data and accounts). Nothing is masked by default. Compare the unmasked and the masked state one after the other.

First, make the scenario use account(). Write the real values, such as the password, yourself in ~/.config/fleetest/dataset/<project>/accounts.json, which exists only on this Mac (it does not go into the repository).

Prompt for the AI

Change the login scenario to read the ID and the password from account("[account1].id") and account("[account1].password").
Don't create accounts.json (I will write the values).

Next, run it unmasked and confirm that the password stays in the output as it is.

../fleetest/.build/debug/fleetest run --profile ios-run
grep -rl 'the-password-value' TestProjects/project1/reports/ TestProjects/project1/results/ | head

Replace the-password-value with the real value you wrote in accounts.json.

Then write the following in the machine settings ~/.config/fleetest/config.json yourself (create the file if it does not exist), and run again.

{ "redactAccountValues": true }

A person at this Mac writes the machine settings by hand. Do not have the AI assistant write them (Claude Code gets a setting at install time that refuses edits to this folder). The list of setting keys is in Machine settings (config.json).

Finally, run grep against the new run.

grep -rn '\*\*\*' TestProjects/project1/reports/ | tail -3

Expected result:

4. Check the contents before sending anything out

To report a problem, you bundle diagnostics into a zip and attach it. Check what is in the zip before you share it.

Prompt for the AI

Make a diagnostic zip with fleetest doctor --bundle fleetest-diag.zip and list its contents with unzip -l.
If you do it manually (click to show details)
../fleetest/.build/debug/fleetest doctor --bundle fleetest-diag.zip
unzip -l fleetest-diag.zip
unzip -p fleetest-diag.zip | grep -a -c 'Login'    # count occurrences of text from the app's screen (a label)

Replace Login on the last line with text that appears on your app's screen.


Expected result:

5. Delete it

Look at the amount first, then delete the accumulated recordings, reports and logs.

Prompt for the AI

Show me how much fleetest clean --dry-run would delete. If that looks fine, run fleetest clean.
If you do it manually (click to show details)
../fleetest/.build/debug/fleetest clean --dry-run
../fleetest/.build/debug/fleetest clean

Expected result:

Things to know


Next: Maintenance for long-term use