[ agent view ]
Documentation Index
Fetch the complete documentation index at: https://e2e.com/docs/llms.txt Use this file to discover all available pages before exploring further.
Bug bashes
Run many explore sessions at the same time, then prove each bug with a failing test.
A bug bash runs many e2e explore sessions at the same time, each on one
area of the app. A coding agent then writes a test for each finding and
reports it as a bug only when the test fails.
Each browser is one explore session.
Before you start
- Make sure the app can serve many explorers at the same time. Start the
app one time and set
reuseExisting: trueon the target'sapp.command, or set port0in the app URL so each run starts its own copy. WhenCIis set, e2e ignoresreuseExisting. Use port0. See Starting your app. - On mobile, declare one target for each simulator or emulator. Each explorer needs its own device.
- Each explore session uses model calls. Each run ends with its tokens, cost, and duration.
- On a deployed site that other people use, do not change data.
The agent does the rest of the setup, such as seeded accounts and sign-in, from the skill.
Install the skill
The coding agent runs the bug bash from the e2e skill,
which e2e init installs. To install it without init:
npx skills add e2e-inc/e2e
pnpm dlx skills add e2e-inc/e2e
bunx skills add e2e-inc/e2e
Start a bug bash
Give a prompt to your coding agent:
Bug bash the checkout and account settings on this branch.
What the agent does
- Reads the routes of the app. On a branch, it also reads the diff.
- Writes 5 to 10 charters. A charter is a one-sentence goal for one area, with one posture: first-time user, numbers and copy, edge input, state after reload, or error paths.
- Runs one
e2e explorefor each charter, 4 at the same time, each with its own persona (--agent) and output directory (--output). - Merges the findings of all charters.
- Rejects findings that have a known cause. The cause can be a limit of the explorer (for example, a link that opens a new tab), the local environment, the intended design, or the seed data.
- Writes a repro test for each remaining finding: the finding's steps as
agent.actcalls and its expected behavior as the closingagent.assert. It can start one subagent per area. - Runs the repro tests. The finding is a bug only when its test fails on
the reported defect:
ASSERTION_FAILEDfrom the closing check, or anactthat fails on the defect itself. - Reports, in this order: confirmed bugs, production risks that it cannot verify locally, rejected findings by reason, and warnings.
Each confirmed bug has its repro test and steps. It also has the explorer's screenshot and video when the engine records them.
The video is not masked. If the explorer typed a password, check the video before you share it.
To read the full procedure, run npx e2e guide bug-bash.
Repro tests
A repro test fails until the bug is fixed. The agent tags each one
bugbash. Keep them out of the run that gates merges:
npx e2e run --exclude-tag bugbash
pnpm exec e2e run --exclude-tag bugbash
bunx e2e run --exclude-tag bugbash
After the fix, the test passes. Remove the tag and keep the test as a regression test.
Next
What one e2e explore run does, its budgets, and its report.
Live sessions for coding agents, several at once.
