Dashboard and test suites
Three repositories with no shared code, meeting at two points. The dashboard is a demo and starts nothing real; once a day each suite — API or UI — runs in CI and reports to it the same way. One run, end to end.
No password: press “Log in to demo” for a sandbox of your own.
Scroll sideways to see the whole diagram.
- Ask for a run. A visitor picks a suite and presses Run, and the front end sends
POST /runswith their session. A machine holding an API key sends the same call straight to the backend, and meets the same rules. - Simulate it. The backend writes the run into the visitor’s own sandbox and plays it out itself. It dispatches nothing: the dashboard is a demo.
- Run the suite, for real. Once a day each suite’s CI pipeline runs all of it on
main, on its own schedule, and builds one report. - Send it back. The suite uploads the report into the dashboard’s private storage with a scoped token, then posts a signed result to the backend, which records it as a real run every visitor sees and none can change.
- Read it. The front end polls the backend for status, and the report is read back through the backend, never from storage directly.
Inside a suite run
What “the test suite runs” means: one command, a pool of workers, and tests that do not depend on each other.
Scroll sideways to see the whole diagram.
What makes the tests independent
API suite: each test makes its own data
One mock serves every worker and is never reset. Each test creates uniquely named data and checks only what it created.
UI suite: each test signs in fresh
The cart lives in the browser, so a shared session would carry one test’s cart into the next.
What parallelism buys
The API suite on a ten-core machine, as its Playwright config records it:
| Workers | Wall clock | Note |
|---|---|---|
| 5 | 2.9s | the setting — 50% of ten cores |
| 10 | 3.5s | slower |
| 16 | 4.1s | slower still |
More workers made it slower. One mock serves every worker and becomes the bottleneck, so past half the cores the extra workers only queue. That is why the setting is 50%, written as a fraction so a bigger runner is still used.
Before a suite is called stable, it runs at 12 workers, five times over, with nothing flaky.
The same suite, built twice
Each repository builds the same tests two ways, with identical settings, so the two styles can be compared fairly.