-
Testing
Write smoke tests to run against production after every deploy
A small set of read-only checks that confirm the live site actually works right after a deploy goes out.
Free Prompt
I want a small smoke test suite I can run against my live site immediately after every deploy, to catch the 'deploy succeeded but the site is broken' case.
Write a set of fast, read-only checks against the production URL:
1. The homepage returns 200 and contains expected markup (not an error page or a blank shell).
2. The signup and login pages load.
3. Any health check endpoint I have (or should have) returns healthy. If I don't have one, create it as part of this work: a simple endpoint that verifies the app can reach its database and returns 200 only if so.
4. Key public API endpoints respond with expected shapes.
5. Critical static assets (the main JS and CSS bundles) return 200 and aren't HTML error pages served with the wrong content type.
Constraints: these tests must be strictly read-only. No signups, no writes, no test payments against production. If a flow can't be verified without writing, verify the page loads and leave the write-path testing to my pre-production suite.
Make the suite runnable as a single command I can fire from my terminal, with a clear pass/fail summary and a non-zero exit code on failure so I could wire it into a deploy script later.
When done, run it against my production URL (I'll provide it) and show me the results.
What This Does / How This Helps
This creates a fast, read-only smoke suite you run against production right after each deploy: homepage, auth pages, a real health check, key endpoints, and critical assets. 'Build succeeded' and 'the site works' are different statements, and deploy platforms only guarantee the first. The classic failure is a bad environment variable or a broken asset path that turns the live site into a white screen while the dashboard says deployed. A sixty-second smoke run after every deploy turns a two-hour outage into a two-minute rollback.
Want to skip doing this by hand?
Fortivibe audits your app for all of the areas these prompts cover (and more).