commit b099dd7c8eda40e10d1f96c9624dbc72eb2e4d4d parent 04bfdfdb295bf6aa66e4af362782b2d1f2b57b2f Author: Michael Camilleri <[email protected]> Date: Fri, 8 May 2026 07:39:09 +0900 Add testing instructions to AGENTS.md Diffstat:
| M | AGENTS.md | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/AGENTS.md b/AGENTS.md @@ -11,3 +11,12 @@ - The user will handle making commits. - When asked to generate git commit messages, use the last few multiline commit messages in the repository as the style guide. + +## Running Tests + +- Run the unit suite via `bash Scripts/test-unit.sh`; the script picks a simulator automatically. +- Capture the full output to a file on the first run, then grep + tail — never re-run the suite just to look at different parts of the output. One-shot pattern: + ```bash + bash Scripts/test-unit.sh > /tmp/test.log 2>&1; grep "Test case" /tmp/test.log; echo "---"; tail -15 /tmp/test.log + ``` + This surfaces every per-case result and the trailing summary (totals on success, `.xcresult` path on failure). For more context on a failure, grep around the failure line in the same log file or open the `.xcresult`.