Avalyz

Articles

How to test an app built with Claude Code

Claude Code is an agentic coding tool: according to its documentation it reads your codebase, edits files, runs commands and integrates with your development tools. It is a strong way to build a web app quickly. This guide is for people who ship an app that Claude Code wrote and want to know, before real users arrive, whether the published version actually works. You will get a pre-launch test plan and three ways to plug an independent test into your Claude Code workflow.

What Claude Code does for testing

Claude Code can write tests for untested code, run them and fix failures; its documentation gives this as a typical use. That covers the inside of your project: unit tests, lint, type checks. What it cannot easily show you is the deployed result as a stranger sees it: the real address, the real browser, the real sign-in page, the real mobile screen. Both views matter, and they catch different problems.

What usually breaks in apps built with an AI agent

Pre-launch test plan for a Claude Code app

  1. Run your own tests and the build locally, and read the output yourself.
  2. Deploy to the public address your users will use.
  3. Open the home page in a private window, on a laptop and on a phone.
  4. Click every link in the main menu and the footer.
  5. Create a new account with a fresh email, not the one you used in development.
  6. Sign out, sign in again, and try a wrong password.
  7. Run the main journey end to end (the thing your app is for).
  8. Submit each form with an empty, a very long and an unusual value.
  9. Use the keyboard only: can you reach and activate everything?
  10. Check images for text alternatives and text for sufficient contrast.
  11. Reload a deep page directly and visit an address that does not exist.
  12. Look for secrets, test data or debug messages visible in the page.
  13. Read the cookie and privacy notices as a visitor would.
  14. Run an independent read-only test with Avalyz on the public address.
  15. Fix the blocking findings with Claude Code, redeploy, and test again.

Plug a test into Claude Code

Claude Code reads a CLAUDE.md file at the start of every session, which its documentation describes as the place for instructions and checklists. Avalyz publishes a block you can paste into it, so that Claude Code tests the app after every deployment and reads the report:

Keep your API key in the AVALYZ_API_KEY environment variable and never write it into the repository.

MCP server. Claude Code supports the Model Context Protocol, an open standard for connecting AI tools to external data sources. Download the Avalyz server file once with curl -O https://avalyz.com/av/integrations/avalyz_mcp.py, then register it with claude mcp add avalyz -e AVALYZ_API_KEY=YOUR_API_KEY -- python3 /PATH/TO/avalyz_mcp.py. Claude's documentation shows the same pattern, claude mcp add with --env or -e for variables and -- before the server command. Run claude mcp list or /mcp in a session to check that it is connected. Claude can then run tests and read the reports itself.

GitHub Actions. Claude Code's documentation lists GitHub Actions for CI. Avalyz provides a workflow file for .github/workflows/avalyz.yml that runs after every successful deployment and fails the CI if the verdict is NO-GO; the exact file is on the integrations page. Store the key in a repository secret named AVALYZ_API_KEY.

What an independent test adds

The assistant that wrote your code knows your intentions, so it tends to check what it meant to build. A separate tool that sees only the published address behaves like a visitor: it does not read your code and does not share the assistant's blind spots. Avalyz proves what it saw; it does not vouch for the rest, and a clean report is not proof that the app has no defects. It is a second pair of eyes, not a substitute for your own judgement.

Test your Claude Code app with Avalyz

Avalyz tests a web application from the outside, in real browsers, and returns a verdict with evidence. Start free at /banc: paste your app's address, no sign-up, 3 tests a day. Or open https://avalyz.com/essai?url=YOUR_APP_URL with your own address in place of YOUR_APP_URL: it fills in the address and starts the test.

FAQ

Can Claude Code test its own app?

It can write and run tests inside your project, and with the setup above it can also call an external test on the deployed address. The independent test is useful because it does not share the context of the session that wrote the code.

Do I need an API key?

Not for the free test or the link. The key is needed for the command, the MCP server and the CI workflow. You get one from the "API keys" page of your Avalyz account; the trial needs no card.

Will the test change my data?

By default no. It is read-only; the sole form submitted is the sign-in form, with the test account you give. A write mode exists only at your request and requires proof or an attestation that you may test the site.

What does the verdict mean?

GO means no blocking finding was seen; NO-GO means at least one was, with evidence. The API can also return GO SOUS CONDITIONS or INCONCLUSIF when the picture is not clear.

Does Avalyz replace unit tests?

No. Unit and component tests are only inventoried. Avalyz judges the running app from the outside.

Related guides: Test an app built with Cursor or Windsurf, Test what you build with Claude Cowork, Test a vibe-coded app, Test a Lovable app. Overview of every tool: AI app builders.

Try it free See pricing

Sources

Claude Code is a trademark of its owner. Avalyz is independent and not affiliated with it.