Skip to main content

Including expected outcomes

This is the most commonly missed element in prompts. Without expected outcomes, tests confirm that steps ran — not that anything worked correctly. When you include an expected outcome, Megumi turns it into the Expected Result field of the test case. Mahoraga uses this as the pass/fail criterion during execution. The pattern: always end each scenario with what should be true when it completes successfully. What screen should appear? What data should change? What message should display? What should not happen? Include negative outcomes too. For error scenarios, say exactly what the error should look like: the message text, where it appears, and what should remain unchanged (e.g., “the user remains on the login screen” — confirming no navigation occurred).

Using multiple context sources together

Each source you attach before prompting fills a gap the others cannot: They are not redundant — they are complementary. A codebase tells you what the app does. A Figma file tells you what it should look like. A PRD tells you why it exists and what counts as success. When you have multiple sources attached, tell Megumi explicitly to use all of them:
Without explicit direction, Recipe may lean on one source more than others. → Attaching context

Asking Megumi questions

Megumi is not only a test generator. You can ask it questions about your app and your testing strategy in plain English, and it will respond using the context it has available. Examples of questions you can ask:
Megumi uses your attached context — the PRD, the Figma file, the existing test cases — to give answers specific to your situation, not generic advice. This is especially useful mid-session when you have already generated a batch of tests and want to assess completeness before saving.

Refining after generation

If the first output is not what you wanted, stay in the session and follow up. The agent remembers everything — you do not need to restate context. The Tests panel updates as Megumi makes changes. Session memory means it always knows which test “test 3” refers to, even if you generated them twenty prompts ago. Do not discard a session and start over when the output is not right. Iterating in the same session is faster and produces better results because Megumi has the full conversation context to build on.

Structuring long prompts

For complex features, organise your prompt the way you would organise a brief. Megumi reads structure well. Use sections for different areas:
Use numbered lists for priority scenarios:
Megumi interprets both formats well. The key is clarity about what you want, not how you format it.