Testing AI-Written Software: A QA Checklist for Non-Engineers

The most common way DIY AI projects fail isn't bad code. It's code nobody tested properly. AI output looks finished, the main screen works when you click through it once, and it gets shown to customers. Then the first real user enters an apostrophe in their name, or books the last slot at the same time as someone else, and it breaks.

You don't need to be an engineer to test well. You need a checklist, a little patience, and the habit of trying to break things.

Why AI-written code needs more testing, not less

AI writes plausible code very fast. Plausible isn't the same as correct. It can quietly handle the main case and miss the edge cases, misread a rule you mentioned once, or fix one thing and break another. And because it's confident, it will often tell you a task is done when it hasn't checked.

The checklist

Run through this for every feature before you call it done.

1. The main path. Does it do what it's supposed to, start to finish, the way a normal user would?

2. The awkward inputs.

  • Empty fields, very long text, names with apostrophes or accents
  • Zero, negative numbers, huge numbers
  • Dates in the past, today, far in the future; time zones

3. The awkward situations.

  • Two people doing the same thing at once (booking the same slot, editing the same record)
  • The internet dropping halfway through
  • Pressing the button twice, or going back and resubmitting

4. The other states. What it looks like with no data yet, with lots of data, and when something goes wrong. Are error messages clear and helpful?

5. Who can see what. Can a customer see another customer's information? Can someone who isn't signed in reach a page they shouldn't? Try it.

6. Phone and desktop. Does it work and look right on both?

7. Everything it might have broken. After a change, re-check the features nearby. A change to pricing might affect checkout, invoices and reports.

Keep a written list of these checks for your project and run it every time. It gets faster each time.

Make the AI test its own work

AI can do a lot of testing for you, if you ask:

  • Give it a definition of done. "Done means: it handles the checklist above, and you've shown me the result." Anthropic's best-practices guide recommends giving the AI concrete checks, like example inputs and expected outputs, and having it run them.
  • Ask for automated tests. These are small programs that check the software works, and can be re-run after every change. Ask the AI to write tests for each feature and run them before saying a task is finished.
  • Reproduce bugs before fixing them. When something breaks, ask the AI to first write a test that shows the bug, then fix it. The test proves the fix and stops the bug coming back.

A real example: checks that run every time

This website imports new articles automatically, and every article has to pass a list of checks first: the search title and description are the right length, every link works, the booking link is there, and the article links to the right pages. The checks are a small program that the AI wrote and that runs on every delivery. If one check fails, nothing is imported.

Three things I learned from running it:

  1. Automatic checks catch what careful people miss. One delivery of nine articles had three broken links in a single article. I had reviewed it and so had the AI. The check found the links in seconds, and the mistake never reached the live site.
  2. Checks need maintaining too. Once, the link check rejected a perfectly good link, because its own list of the site's pages was out of date. A check that's wrong is a bug like any other. Fix the check, don't work around it.
  3. Try the checks on a copy first. Before a large batch of new articles, the whole process was run on a copy of the files. Everything passed, and nothing real was touched. A rehearsal costs minutes.

The same idea works for any software: write down what "correct" means, turn it into checks that run by themselves, and never let a change through that fails them.

When something breaks: a five-step routine

  1. Write down exactly what you did and what happened, with a screenshot.
  2. Make it happen again. A bug you can't repeat is a bug you can't confirm is fixed.
  3. Ask the AI to find the cause before changing anything. "Explain why this happens. Don't fix it yet."
  4. Ask for a test that shows the bug, then the fix.
  5. Re-run your whole checklist. Fixes break things nearby more often than you'd expect.

Use a second AI as the reviewer

An AI is less critical of code it just wrote. The same guide suggests a writer and reviewer setup: one session builds, and a fresh session, with no memory of writing it, reviews the work. A prompt for the reviewer:

Review this change for correctness. Trace the full flow, including the edge cases. Report only real bugs, with where they are and why they're wrong. Don't suggest style changes.

The final check is always a person

AI testing catches a lot, but a person using the software catches what matters most: whether it actually makes sense. Before launch, have someone who didn't build it try the main tasks without help. Watch where they get stuck.

However good the AI gets, testing is still a person's job, and an important one. AI makes bugs easy to fix once they're found. Finding them in the first place, especially when the problem is how something looks or feels to use, usually takes a human.

Common questions

Can I trust code written by AI? Trust it the way you'd trust a capable new hire: after you've checked it. Tested AI-written code can be very reliable. Untested code isn't, whoever wrote it.

I'm not a developer. Can I really test software? Yes. Most real problems are found by using the software like a difficult customer would, not by reading code.

What are automated tests, in plain terms? Small programs that use your software and check the result. Once written, they re-check everything in seconds after each change.

How do I know when I've tested enough? When your checklist passes, the automated tests pass, a second reviewer finds nothing serious, and someone who didn't build it can finish the main task without help.

The AI says it's done and tested. Is it? Ask it to show you. "Show me the test results" and "show me it working" are fair requests every time.

Related guides: make the AI ask first, the pre-launch checklist and writing a project instructions file.

The bottom line

Untested AI output is a draft, not a product. A simple checklist, automated tests the AI writes and runs, a second AI as reviewer, and a real person trying it will catch the vast majority of problems before your customers do.

This is part of my guide to building software with AI. If you'd rather have it built and properly tested for you, see how a custom build works, or book a call.

Have a project in mind?

Tell me what's slowing you down and I'll tell you honestly whether it's worth building. 30 minutes, free, no obligation.

Book a free 30-minute call

Next: pick a time from my calendar.