docs: add tests/ folder convention for test output

This commit is contained in:
2026-01-20 12:04:29 +01:00
parent 17f605cf5f
commit 11c59b890e
6 changed files with 46 additions and 4483 deletions

View File

@@ -337,6 +337,37 @@ mosis-designer.exe --simulator --test-apps base-apps \
---
## Test Output Directory
All test files and output should be placed in the `tests/` folder at the project root:
```
MosisService/
└── tests/
├── test_navigation.json # Test action files
├── test_settings.json
├── screenshot_home.png # Screenshot output
├── screenshot_settings.png
├── hierarchy.json # Hierarchy dumps
└── recorded_actions.json # Recorded actions
```
### Usage
```bash
# Run test with output to tests/ folder
mosis-designer.exe --simulator --test-apps base-apps \
--playback tests/test_navigation.json \
--screenshot-after tests/screenshot_result.png \
--hierarchy tests/hierarchy.json
```
This keeps the project root clean and organizes all testing artifacts in one place.
**Note**: The `tests/` folder is gitignored - test outputs are not committed to version control.
---
## Troubleshooting
### Tap not registering