Skip to content

Commit ac2e1b9

Browse files
committed
Update AGENTS.md
1 parent 6ec00ab commit ac2e1b9

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

AGENTS.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,17 @@ I use GameCI `unity-test-runner`.
2626
## How to run tests locally
2727
### EditMode
2828
Run Unity in batchmode:
29-
- `Unity -batchmode -nographics -quit -projectPath . -runTests -testPlatform editmode -testResults ./TestResults/editmode.xml`
29+
```
30+
PROJECT_ROOT="$(pwd)"
31+
RESULT_XML="$PROJECT_ROOT/TestResults/editmode.xml"
32+
33+
mkdir -p "$(dirname "$RESULT_XML")"
34+
35+
"<UNITY_EXE>" -batchmode -nographics -quit \
36+
-projectPath "$PROJECT_ROOT" \
37+
-runTests -testPlatform editmode \
38+
-testResults "$RESULT_XML"
39+
```
3040

3141
## Architecture guardrails
3242
- Runtime surface area should remain minimal (mainly attributes / data structures).

0 commit comments

Comments
 (0)