Code from an AI assistant usually looks right and often runs. That is the problem: it is easy to accept without using it, and more of it ships per day than anyone can read. The fix is not to read harder. It is to check what the software does.
Why AI-generated code needs a different check#
- There is more of it than anyone can review. Careful reading does not scale with how fast it is produced.
- It looks finished. Tidy code and confident explanations make weak spots harder to notice.
- The assistant grades its own homework. If it misunderstood the requirement, its own tests will share the misunderstanding, and they will pass.
- Breakage is often far from the change. An edit to a shared helper can break a page the assistant never opened.
Typical failures show up only in use: a total that ignores quantity, a Remove button that does nothing, data lost after a reload, a permission check that was never added.
A practical way to test it#
1. Separate the writer from the checker#
Whoever wrote the code should not be the only one saying it works. Use a separate tester working from what the app should do, not from the code it is checking.
2. Keep a description of what the app should do#
When an assistant builds a feature, have it update the PRD. The requirements become the reference for testing, and you only need to read a short document instead of a long diff.
3. Test the running app on each change#
Run the app and use it, on every pull request. Unit tests are useful, and they can pass while the page is broken. See testing in CI.
4. Give the assistant the results#
The loop closes when bugs go back to the assistant with steps and evidence. A good report comes with a fix prompt you can paste in.
5. Look at it yourself before big releases#
Software checks what was specified. You check whether it was the right thing to build.
Using Testis Dev with a coding agent#
Testis Dev works as a tool your coding agent can call:
npm install -g @testisdev/cli
testis agent install
That adds the skill and MCP server for Claude Code, Cursor and other MCP clients, so the agent can test the app and read the results itself. See chat and your editor. It also works without any agent: run testis and say "test my app".
Because Testis does not read your source code, it cannot be talked into believing the code is right. It only knows what the PRD promises and what the screen shows.
Common questions#
How do I test a vibe-coded app?#
Have your assistant write down what the app should do, then run a tester against the running app. You do not need to know how to write tests, or to read the code: you read a report of what is broken, then paste the fix prompt back into your assistant.
Are unit tests written by AI enough?#
They help, but they tend to confirm what the code does rather than what it should do, and they do not cover the whole app working together. Add a check that uses the real app.
Is AI-generated code less reliable than human code?#
It varies too much for one answer, and much depends on the review around it. Either way, the check is the same: use the software and compare what happens with what should happen.