r/Everything_QA • u/Timely_Air9430 • 36m ago
Question AI writes most of my app's code. What should my tests be based on?
Home project, iOS + Android. If AI writes the code and AI writes tests from that code, the tests just agree with the code. Bugs stay green.
So I'm trying this instead:
spec.md ---> WHAT is correct
code diff ---> WHERE to test
spec.md (Given / When / Then)
|
code + PR --> "touches: send, balance"
|
run only tests tagged send + balance
|
tap tests on simulator, screenshots
|
agent checks screens vs spec
|
PASS / FAIL --> I decide
Every bug I find later must add one test before I close it.
Stack: Markdown specs in the repo, GitHub Actions, Dagu, opencode agents on a local LLM, iOS simulator + Android emulator.
Questions:
- Does the spec / diff split hold up, or am I missing a failure mode?
- How do you keep test-to-code-area tags from rotting?
- Maestro, Appium, or XCUITest / Espresso if agents maintain the flows?
- Have used terminal-phone support iOS, so question is to use specific to iOS and Android for simulator/ emulators?