Manoj Perla.ENGINEERING NOTES & OPEN SOURCE
← All exploration notes

A reviewable loop for AI-assisted test design

Make generated tests traceable to requirements and demonstrate that they catch the failures that matter.

Start with observable behavior

Take a simple task-board requirement: blank titles must be rejected without creating a task. Before generating code, identify the initial state, action, expected response, and persisted outcome. Add boundary examples such as whitespace-only input and valid text. This gives the assistant a testable contract rather than an instruction to create broad coverage.

Generate proposals with traceability

Ask for a scenario table linking each case to a requirement or risk. Review the table before implementation. Generated code should reuse fixtures and page objects, isolate its data, and assert outcomes rather than merely execute clicks. Unclear requirements should remain questions for review; the generator should not silently invent business rules.

Check the test itself

A passing test against a working application proves little on its own. Introduce a controlled defect in a disposable branch, such as allowing blank titles, and confirm the relevant test fails for the expected reason. Check that it passes again when the behavior is restored. Review unrelated failures and flaky retries separately so they do not masquerade as useful defect detection.

Keep the feedback bounded

Track which risks are covered, which seeded defects are detected, and how much review is needed. Let automated checks verify syntax and execution while a person reviews business intent and maintainability. A useful first experiment is a small set of task-board requirements in SpecHarbor or PagePilot, with no automatic merge or production access. This is a method to evaluate, not a promise of autonomous quality assurance.

How Testing Changes When Software Becomes Autonomous

Autonomous software changes testing from deterministic verification to continuous evaluation of goals, decisions, boundaries, and outcomes.

Read essay →