Sandbox

The sandbox lets you try CoverOps on a demo shop before you point it at your own code. ShopDemo is a small online shop made of six Java services with the CoverOps agent already inside. It runs on your machine in Docker, and the kit comes with a Playwright suite and a Selenium suite that drive it. Everything reports into a sandbox project of your own.

Where to find it

Sidebar → Workspace → Sandbox.

Anyone signed in can use it. Each account has at most one sandbox, and the screen always acts on your own. The sandbox can only be managed from a signed-in session; an API token cannot download a kit, revoke it or delete the sandbox.

What it shows

A description of the sandbox and two buttons: Download the kit (or Download a new kit once you have a sandbox) and, when the sandbox exists, Open the sandbox's runs.

Sandbox status

Shown once the sandbox exists, titled with the sandbox project's name. Three values:

  • Shop — Reporting now, Last report …, Not started yet, or No live token: download a kit.
  • Token — the prefix of the current token.
  • Runs — how many runs the sandbox has, and for the latest one its run key, how many tests passed out of how many, and the share of lines covered.

Four steps

  1. Start the shop — unzip the kit, then cd shopdemo-sandbox and docker compose up -d, and open http://localhost:7100.
  2. Run the Playwright suite — Node.js 18 or newer: npm install, npx playwright install chromium, npx playwright test in the playwright folder.
  3. Run the Selenium suite — Java 17 and Maven: mvn test in the selenium folder. With only Docker on the machine, both suites also run in containers: docker compose --profile playwright run --rm playwright and docker compose --profile selenium run --rm selenium.
  4. Watch the coverage — open the run while the tests run.

Token and data

Shown once the sandbox exists: Revoke token and Delete sandbox.

How it works

  • The kit is a zip with a .env file (the CoverOps address and the sandbox agent's token), a docker-compose.yml for the shop, the playwright and selenium suites, and a README. The token is in that .env file and nowhere else.
  • Every kit carries a new token. Downloading a kit revokes the tokens of earlier kits in the same step, so only the newest kit can report.
  • Isolation. The token can only report into your sandbox project.
  • Package limits. No package limit counts the sandbox: not as a project, not its lines of code, not its agent instances. AI calls made in it are counted like any other.
  • Status. The page refreshes every 5 seconds. Reporting now means the shop's token was used in the last 2 minutes.
  • Runs. Each suite run is its own run in the sandbox project. When a suite opens its run, that run becomes the sandbox's active window and the previous one closes, so its coverage is exactly what the suite ran. Clicks you make in the shop after a suite land in that suite's run until the next suite starts. Each test shows the requests it made, the services they crossed and the lines it ran. The links the suites print open the same pages.
  • Open the sandbox's runs switches your active project to the sandbox and opens Coverage monitoring.

What you can do

ActionEffect
Download the kit / Download a new kitCreates the sandbox if needed, issues a new token and downloads the zip; older kits stop reporting
Open the sandbox's runsSwitches to the sandbox project and opens its runs
Revoke token (with confirmation)The shop and suites keep running, but nothing they report is accepted until you download a new kit
Delete sandbox (with confirmation)Deletes the sandbox's runs, coverage and uploaded shop code; the kit's token stops working. It cannot be undone; a new kit starts an empty sandbox

Downloading a kit, revoking the token and deleting the sandbox are recorded in the Audit log.

Limits and good to know

  • You need Docker (Docker Desktop on macOS and Windows). The first start pulls the shop image.
  • An installation without internet access cannot pull the image; it has to be mirrored into the registry that installation uses.
  • On an installation served over plain http:// on a host other than localhost, Maven 3.8 and later refuse to fetch the agent jar for the Selenium suite. Serve CoverOps over HTTPS, or override Maven's HTTP blocker in your settings.xml.
  • The sandbox project also appears in your project list and project picker, like any other project you own.