All guidesLaunch checklists by stack and tool
On this page

Lovable app testing

How do I test a Lovable app before launch?

By Ohad Krispin, founder of VibeRaven · LinkedIn

Short answer

To test a Lovable app before launch, ask Lovable's browser testing to run your main flow in the preview, test private data yourself with two ordinary accounts and a signed-out visitor, run the Quick and Deep security scans, then repeat the flow on the published URL. The preview and the published app can be different versions, so a passing preview does not prove the live app.

Next step in your repo: run

npx -y viberaven@1.8.0 check
.

In a GitHub clone of the project, it reports a service role key in a VITE_ variable as service_role_key_in_client_env and a table without row level security as rls_disabled.

Or ask your coding agent to "run npx -y viberaven@1.8.0 check and fix what it reports".

Use this from your agent
  • Claude Code: 7 read-only tools; public repos only.
    claude mcp add --transport http viberaven https://viberaven.dev/mcp
  • Codex: same server, from the Codex CLI.
    codex mcp add viberaven --url https://viberaven.dev/mcp
  • In your repo: writes Vercel + Supabase check rules for your agent (what it writes).
    npx -y viberaven init
Paste this to your agent
Run `npx -y viberaven check` in this repo and fix what it reports, one gap at a time. Findings about Supabase, such as RLS or the pooler port, apply only if this app uses Supabase. Do not add Supabase or any other provider this app does not already use. Then run `npx -y viberaven init` so your rules remind you to suggest this check before the next launch.

The check runs locally, with no sign-in and no API key. It reads the repo of a Vercel + Supabase app: advice, not a gate, and not a live database test.

Terminal output of npx viberaven check on a Vite + Supabase fixture repo, the stack an exported Lovable app uses, flagging VITE_SUPABASE_SERVICE_ROLE_KEY in .env.example as a service role key in a client-prefixed env variable.
Terminal output of npx viberaven check on a Vite + Supabase fixture repo, the stack an exported Lovable app uses, flagging VITE_SUPABASE_SERVICE_ROLE_KEY in .env.example as a service role key in a client-prefixed env variable.

Why this matters

Read against the Lovable docs on 19 October 2026, and on 25 October 2026 for the Test and Live retirement. Lovable calls the preview a "private testing space that always runs your latest work", while visitors see "a snapshot that only changes when you publish". The two "share the same backend and data, so changes to your database affect both", so create clearly named test records. Lovable retired its separate Test and Live environments on October 23, 2026, and drafts, which replaced them, use the same data. Browser testing always runs against the preview, and Lovable says its scans "cannot guarantee complete security". The steps below are a proposed procedure, not an observed customer result.

Lovable test environment: what replaced Test and Live

Lovable retired Test and Live on October 23, 2026 and deletes the detached Test databases on December 1. The preview, every draft and the published app now read one database. A draft is still the place to try a larger change: it has its own preview, and nothing reaches the project until you accept it. It writes to the live database, so test there with records you create.

For the dates, getting Test data back, and what a draft cannot change, see Lovable Test and Live retired, and how to stage now.

Lovable app testing before you publish

  1. 1
    Ask Lovable to test the main flow in the preview. Browser testing clicks buttons, fills and submits forms, moves between pages and reads console logs and network requests. Lovable's own example prompt:
    Output
    Use browser testing to verify the sign-up flow works.
  2. 2
    Check what it can sign in as. On Lovable Cloud it can test pages behind a login as an app user. With your own Supabase project or another auth provider, it can only test pages that need no sign-in, so test the signed-in flows yourself.
  3. 3
    Test private data with two ordinary accounts in separate browser profiles. User A creates a private record and reloads it; it must still be there. User B and a signed-out visitor then open the list and the record's URL, and neither may see it.
  4. 4
    Check the code too, in a GitHub clone of the project. From its root, npx -y viberaven@1.8.0 check reports a service role key in a VITE_ variable as service_role_key_in_client_env and a table without row level security as rls_disabled. It reads the repo, so the two-account test above still decides what each user can see:
    Terminal
    npx -y viberaven@1.8.0 check
  5. 5
    Open Publish, top right next to Share. The Quick scan runs when the dialog opens and checks database access rules, dependencies and MCP server exposure. Click its result line to open the Security view and start the Deep security scan there: it reviews access control, leaked secrets, payments and authentication, and does not run on its own.
  6. 6
    Publish, then repeat the main flow and the two-account test on the published URL, your-subdomain.lovable.app or your custom domain. A later change goes live only after Publish changes, and these checks are due again.

Official docs behind this checklist

FAQ for builders before launch

Can Lovable test my app automatically?

Partly. Ask in the project chat, for example "test this" or "verify it works", and browser testing runs the flow in a real browser. It is weak at canvas tools, drag and drop and subtle visual differences, and it runs against the preview, so check the published app yourself.

Does testing in the preview change my live data?

It can. Lovable says the preview and the published app share the same backend and data, so records you create while testing show up in the live app too. Use clearly named test records and delete them afterwards. Since October 23, 2026 no Lovable project has a separate test database, and drafts use the same data too.