Black-box tests
Test the real thing.
Empirical runs a real browser against your app, covering real scenarios that simulate what your product does for customers.
01 · No app code needed
Empirical tests don't need your code, read your repo, or ask you to install an SDK. They open your app's URL and use it the way a customer does, so they work for any language and any stack.
| Unit | Empirical | |
|---|---|---|
| Imports your code | yes | no |
| Needs repo access | yes | no |
| Tied to your stack | yes | no |
| Runs against | a harness | your URL |
02 · Cover the scenarios that matter
We start with the flows your business runs on: checkout, signup, invites, billing. Each test is named for what the customer does and the outcome they pay for, so a red test reads as a broken promise to a customer, not a broken function.
- Guest checks out with a coupon code
- New user signs up with Google and lands on onboarding
- Admin invites a teammate who accepts from email
- Customer downgrades plan and keeps their data
03 · No mocks
Tests run against your deployed app with its real backend, database, and third parties. Payments go through the processor, emails land in an inbox, sign-in goes through the provider. When any of them breaks, a test catches it.
Browser Chromium
Backend your staging API
Database seeded, real
Payments Stripe test mode
Email a real inbox
Mocks none
04 · An asset for big changes
Rewrite the backend, swap the framework, move auth providers. The suite describes what users do, not how the code does it, so it stays put and tells you the change is safe to ship.
API · Node → Rust 0 changed
Vue → React 0 changed
REST → GraphQL 0 changed
Auth0 → Clerk 3 changed
05 · We ship tests as code
Every test is Playwright in TypeScript, in a git repo you can clone. Run it on your laptop or your CI with no Empirical in the loop. Leave whenever you like and keep the suite.
$ cat tests/checkout/coupon.spec.ts test("guest checks out with a coupon code", async ({ page }) => { await page.getByLabel("Coupon").fill("WELCOME10"); await page.getByRole("button", { name: "Pay now" }).click(); await expect(page.getByText("Order confirmed")).toBeVisible(); }); $ npx playwright test ✓ 212 passed (4.1m)