FixKit AI

Home / Use case

Get AI to write tests for your app

โ€œI have almost no tests and I'm afraid to change anything.โ€

AI can write browser tests, API checks and unit tests fast. Run each new test several times to catch flaky ones, and make sure it actually fails when the code is broken.

Fix it yourself in 3 steps

  1. List the 5 flows that would hurt most if they broke.
  2. Ask the AI to write one test per flow, run them, and show results.
  3. Break something on purpose to confirm a test catches it; keep test logins out of git.

Copy this prompt

Write automated tests for these flows: [list], using [Playwright/pytest/etc.]. Run each test 5 times and report flakiness. For one test, show it failing when I break the feature on purpose. Keep any saved login sessions in a git-ignored folder. Stop after the report.

Fill in the [brackets]. Each prompt says when the AI should stop, so it doesn't wander off.

Agents people used for this: Perplexity Comet, Claude Code, Codex.

Inspired by real examples collected at agentusecases.ai.

๐Ÿ“š 3 real stories of people doing this with AI agents

Collected at AgentUseCases.ai.

Tools for this

#1 ยท Our pick

Claude Code

Best for: Serious work on real repos

Anthropic's agent for your terminal, IDE and desktop. Reads the whole repo, runs commands and tests, and handles large multi-file changes well.

Visit Claude Code โ†—
#2

OpenAI Codex

Best for: Delegating tasks as PRs

OpenAI's coding agent, in the CLI and in the cloud. Good at handing off well-scoped tasks that come back as pull requests.

Visit OpenAI Codex โ†—