All features
Everything Piwi does, in one place: what each feature is, what it needs beyond a running reporter, where it lives in the dashboard, and the page that explains it. The groups follow the five jobs the product serves: keep the history, explain the failures, hand back a fix and find what your tests miss, each with the narrower groups that follow from it, then write and debug tests, whose groups are its loop and the tools you install. Trends and reports and what an operator runs come last. The docs sidebars and the landing page use the same groups.
New here? Start with What Piwi does and Getting started; this page is the "where next" once a first run has landed. The last two sections list the pieces you install and the decisions a setup involves.
Keep the history
CI deletes every report it makes. Piwi keeps every run, trace and report, so "has this always been flaky?" and "did my fix hold?" are answerable at all.
| Feature | What it does | Needs | Where |
|---|---|---|---|
| UI overview | Every run, trace and HTML report kept and browsable, live-updating as runs start and finish. | reporter | Home; Project → Runs |
| Guides | Step-by-step walkthroughs of common tasks on your own dashboard, from a first run to the Flake Lab, with no AI model. | reporter | Command palette → Guides; the assistant panel |
| Branches | Branch as a first-class dimension: filter by it, and compare against a baseline computed per branch. | reporter | Project → Filters |
| What changed in a run | Compare two runs — newly failing, newly passing, still red — against a chosen baseline. | reporter | Test run → Changes |
| Import past runs | Backfill history from existing Playwright blob reports or trace files so trends start with a past, not empty. | an administrator | project page → Import; ingest API |
| Offline export | A run or execution exported as a self-contained bundle (and a Perfetto trace) that outlives retention. | reporter | Run / execution → Export |
| Share links | A signed, read-only link to a failure, a quality report or a live dashboard for someone without an account, and a status badge for a README. | reporter | Execution → Share |
Explain the failures
Group forty red tests into the three problems behind them, score the flaky ones by the CI minutes they waste, and — optionally — have an LLM explain a cluster against your real git diff.
| Feature | What it does | Needs | Where |
|---|---|---|---|
| Failure evidence | One failing execution, diagnosis-first: error, clues, attempts, trace-powered views and (with fixtures) console, network and ARIA. | reporter | Test case → execution |
| Run video | Play the videos of a finished run one test after another, grouped by worker or file, with a checklist. | reporter | Test run → Video |
| Failure clusters | Failures sharing an error fingerprint collapsed into one cluster, with an owner, a known-issue link and a verdict on whether its fix worked. | reporter | Test run → Tests → Group by: Cluster; Project → Failures → Clusters |
| Failure inbox | The open clusters you still owe a decision, in queues such as New, Mine or Regressions, triaged from the row, the keyboard or a bulk bar. | reporter | Home → Failure inbox |
| Environment incidents | A run that failed because the app under test was down, recognized and kept out of flaky scores, baselines, fix verification and the gate. | reporter | Test run header; Home inbox; Project → Runs chart → Markers |
| Run environment | Where each run executed (runner, browsers, servers under test) and what changed between runs, shards, or a failure and its last pass. | reporter | Test run header → Environment; Test run → Changes; Test → State |
| Flaky tests & quarantine | Flaky detection and cost scoring, the suspects each flaky test’s history points at, and quarantine that keeps a known-bad test running but off the merge gate. | reporter | Project → Failures → Flaky |
| Flake Lab | Make a flaky test fail on demand: piwi flake replays each suspect as a condition next to a control, and piwi flake verify proves the fix under the same condition. | capture fixtures | Project → Flake Lab; Test case → Flakiness; reporter (piwi flake) |
| AI diagnosis | An LLM explains a cluster against your actual diff, with a suggested patch validated against your source first. | an AI key | Cluster → Diagnosis |
| Assistant | Questions about your runs, failures and setup answered by your AI model from the read tools agents use, with your access; a change it proposes runs only when you click Apply. | an AI key | Sidebar → Ask Piwi; Ctrl+I; command palette |
| Backend logs | Server-side warnings, errors and spans captured per test and shown next to the request that triggered them. | a backend integration | Execution → Network |
Watch a run
Follow a run while it goes: how far it is, in the same words in every tool, the page each worker is on, and the test that has run far longer than its passing runs took.
| Feature | What it does | Needs | Where |
|---|---|---|---|
| Follow a run | Follow a run while it goes, in the same words everywhere: its number and page (#78 · Open) and where a test stopped and why on the run page, in both editors, the Runs window, the desktop app and the terminal, and how far it is in the editors and the Runs window. | reporter | Test run page, editor status bars, Runs window, desktop app, terminal |
| Live view of a run | Watch the page each worker of a running CI run, or of a run a developer shares (Share live), is on, beside its step: a few images a second, only while someone watches, to who may open the run, never stored. | capture fixtures | Test run → Tests → Watch; Project → Settings → Live view |
| Watch all workers | Every worker of a running CI or shared run as a tile on its run page, an image a second each; a click shows one in full, and Follow what needs attention moves to the worker whose test failed, got stuck or stopped, saying why. | capture fixtures | Test run → Tests → Watch all |
| Page events, text and filmstrip | Under a worker’s live view: its page’s console errors, failed and slow requests with what the backend logged of them, its text as roles and names to search, and a filmstrip of its calls, masked in the worker and never stored. | capture fixtures | Test run → Tests → Watch → Page events, Page text |
| Inspect a worker's page | In a worker’s live view, the page at each call of its running test as a document, before it, at its action and after it, rendered without its scripts, with the locator picker on it: sent only while open, its secret fields removed in the worker, never stored. | capture fixtures | Test run → Tests → Watch → Inspect |
| Hold a failing CI test | A CI test that fails while someone who may control the project’s runs watches its worker waits at its failure, its page open for Inspect, until Let it go or the project’s longest hold: off by default, its result unchanged. | capture fixtures | Project → Settings → Live view; Test run → Tests → Watch → Let it go |
| Pause a CI test | Someone who may control the project’s runs pauses a CI test they watch before its next call, then resumes it or ends it, as a local run’s Pause does: off by default, beside Hold a failing CI test. | capture fixtures | Project → Settings → Live view; Test run → Tests → Watch → Pause |
| Share a local run live | Let a teammate watch a run on your machine from its page on the team instance: Share live from VS Code, a JetBrains IDE, the Runs window or the desktop app, and stop it the same way. | capture fixtures | VS Code, JetBrains IDEs, Runs window, desktop app → Share live |
| Stuck tests | A running test that has run far longer than its passing runs took is marked Stuck? on its run page, and a test.stuck notification goes out once per attempt, whoever watches. | reporter | Test run → Tests; Notifications → test.stuck |
Time and resources
Where the time of the suite goes and what a run costs the machine: slow tests and fixed waits, browsers and pages left open, CPU, memory and disk.
| Feature | What it does | Needs | Where |
|---|---|---|---|
| Slow tests & wasted time | Slowest tests, timeout headroom, stale test.slow(), slow endpoints and Web Vitals — the time your suite costs. | capture fixtures | Project → Performance; Analytics |
| Resource leaks | Browsers, contexts and pages your tests leave open or open for nothing, listed with the line that opened them. | capture fixtures | Run → Resources; Execution → Performance; reporter output |
| Leak history in CI | Each resource leak followed across runs: new to a branch or fixed after five clean runs, gated by piwi gate and listed in the pull-request comment. | capture fixtures | Run → Resources; piwi gate; pull-request comment; MCP |
| CPU, memory & disk | What a run cost the machine: CPU by process, time spent waiting for a CPU, peak memory and disk, after every run. | reporter | Run → Resources; reporter output; GitHub job summary |
Hand back a fix
The point is to leave with something to do, not just something to read: a ranked replacement locator, a validated patch, an owner, and the command that verifies the work.
| Feature | What it does | Needs | Where |
|---|---|---|---|
| Locator healing | When a selector breaks, ranked replacement locators captured from the last passing run, with a recommended fix. | capture fixtures | Execution → Locator fix |
| Who uses a locator | Before changing an element, the tests whose steps reach it and the lines they reach it from, or check pasted locators against every run. | reporter | Execution → Locators; Project → More actions → Locators |
| Locator preflight | Before a push, the test locators your diff breaks — a renamed label, a removed test id, a changed translation — with the rewrite applied in place. | reporter | piwi preflight |
| Fix plans, reproduce & bisect | A plan to reproduce a failure locally and bisect to the commit that introduced it. | reporter | Cluster / execution → Fix plan |
| Auto-heal PRs | A pull request that swaps a broken locator for its healed replacement — you review and merge, Piwi never does. | capture fixtures, an SCM credential, an administrator | Settings → Auto-heal |
| Pull-request feedback | A summary of the failures on the branch posted to the PR, and a commit status for the run and the gate. | an SCM credential | Settings → Pull requests |
| Re-run in CI | A cluster’s, a run’s or a test’s tests, or the whole suite, run in CI from the page’s run button: a GitHub, GitLab or Bitbucket pipeline, or a Jenkins job or any CI server one request reaches. | reporter | The run button of a project, run, execution, test or cluster |
| CI actions | The named workflows, pipelines and jobs a project starts CI through, with their inputs, credential and a Check that reads the target without starting it. | reporter | Project → Settings → CI |
| CI merge gate | A piwi gate step that fails a CI job on the dashboard’s analysis of a run: new regressions, required tags or selections, flakiness, new clusters, leaks or quarantine debt, inconclusive on an environment incident, with an optional commit status of its own. | reporter | CI (piwi gate); Project → Settings → Source control (Gate status) |
Issue trackers
A failure filed where your team tracks its work: a Jira issue from a cluster, a run or a test, kept current as the failure evolves, and the results of a run sent to Zephyr Scale.
| Feature | What it does | Needs | Where |
|---|---|---|---|
| Issue tracking (Jira) | A Jira issue filed from a failure with the fix plan as its body, linked back as the known issue and kept in sync with the cluster. | an administrator | Cluster, execution or inbox row → Create issue |
| Issues about a run or a test | A Jira issue about a whole run, or about one test with no failure cluster, with your comment first and each submission filed once. | an administrator | Run header, or an execution’s More actions → Create issue |
| Issue automation | Rules that file an issue for a failure that keeps failing on the branches and environments you choose, and keep its comments and description current. | an administrator | Project → Settings → Issue tracker |
| Results in Zephyr Scale | A finished CI run of the whole suite written to Zephyr Scale Cloud as one test run, one result per test case key, with a dry run first and a link back to the run. | an administrator | Project → Settings → Test management; run page |
Run the right tests
Run the tests a change needs instead of the whole suite: saved selections, the tests a diff affects, and the tests whose code has not changed since they passed.
| Feature | What it does | Needs | Where |
|---|---|---|---|
| Test selections | Run only the tests that matter — changed files, a subset, balanced shards — from the CLI or the dashboard. | reporter | Project → More actions → Selections; CLI |
| Impact from a diff | The tests a change affects, from what each test was seen to run: down to the tests that ran the changed lines when tests record coverage. | reporter | CLI (piwi run impact); MCP get_impacted_tests |
| Run variables | Environment variables a project sets on every run Piwi starts for it and at the start of every command it gives to copy: the tenant one app serves several projects from. | reporter | Project → Settings → Run variables |
| Environments | The deployments a project’s tests run against (Local, Staging, Production), kept as records: each run’s label resolves to one, and a run Piwi starts for one gets its run variables. | reporter | Project → Settings → Environments |
| Deployed environments | For a run against a deployed environment, the application’s commit it ran against, from its server or its deploy markers: the Changes tab, suspect lines and the AI diagnosis read its changes, and a failure cluster names its first failing deploy. | reporter | Test run header → Application; Test run → Changes; failure pages; Project → Settings → Environments |
| Reuse forecast | How much recent test time re-ran code that had already passed unchanged, from recorded coverage, and the tests that failed with their code unchanged. | capture fixtures | Project → More actions → Selections; MCP get_reuse_forecast |
Find what your tests miss
The runs you already have show which routes, pages and controls no test reaches, and which ones a test reaches without noticing when they break; each gap comes with a skeleton to start the missing test from.
| Feature | What it does | Needs | Where |
|---|---|---|---|
| Scenario gaps & the Test Map | Routes and pages your runs reach but no test checks, ranked by exposure, each with a skeleton to start from. | capture fixtures | Project → Coverage → Gaps |
| Uncovered changes in pull requests | The files a pull request changed that no test observably reaches, posted back to the PR with a commit status. | an SCM credential | Pull request comment |
| Code reach | Which tests execute each application source file, from JavaScript coverage on a scheduled run, by file or by function: feeds impact-from-diff, uncovered changes and preflight. | capture fixtures | Reporter options captureCodeReach and coverage.browser; Execution → Source; a file’s coverage page |
| CSS coverage | The style sheet rules each test’s pages matched, from Chromium’s CSS rule usage: a change to a rule selects the tests that rendered it. | capture fixtures | Reporter option coverage.css; Execution → Source; a file’s coverage page |
| Server coverage | The backend files, functions and lines each test ran, per test, from an ASP.NET Core or Nitro build instrumented for coverage. | capture fixtures, a backend integration | Reporter option coverage.server; Execution → Source; a file’s coverage page |
| Combined coverage | The coverage reports of your unit tests (Vitest, coverlet, Microsoft code coverage), uploaded per commit and suite, next to the coverage the Playwright suite records. | reporter | CLI (piwi coverage upload); Project → Coverage → Code; API and MCP tools |
| Coverage insights | From the coverage tests record: the code a failure ran that its last pass did not, a path that depends on which tests ran first, the code only some tests run before you quarantine them, and whether a new test reaches its target lines. | capture fixtures | Execution → Source; Test case → Path variation; API and MCP tools; the AI diagnosis |
| Probes | Whether a passing test would notice a fault behind a request: client probes run through the capture fixtures; server probes inject the fault inside the server, needing a backend package. | capture fixtures | Project → Coverage → Gaps; reporter (piwi probe) |
Write, run and fix a test
Record a test from the editor or the browser, run it, stop it at a breakpoint and write the fix where it stopped: the loop from a new spec to a passing one.
| Feature | What it does | Needs | Where |
|---|---|---|---|
| Write, run and fix a test | The loop from a new spec to a passing test: which tool records it, runs it, stops it and writes the fix at the stop. | capture fixtures | Your editor; Piwi Picker; the desktop app |
| Watch a local test | The page of a test running on your machine, up to ten images a second, through its next tests and stops: from VS Code, a JetBrains IDE, Piwi Picker's Runs window or the desktop app, with Pause and watch to stop it there. | capture fixtures | Piwi: Watch a worker's test; Tools → Piwi → Run control → Watch a worker's test in a JetBrains IDE; Watch on a worker of the Runs window or the desktop app |
| End the test | End a stopped test where it stands, from the editor, the pause bar, Piwi Picker, the desktop app or an agent: the call it stopped before never runs, and Playwright reports the test as skipped. | capture fixtures | End the test in the stopped line's hover, Piwi: End the test; Tools → Piwi → Run control → End the test in a JetBrains IDE |
| AI steps | Author and replay natural-language test steps an LLM turns into Playwright actions. | an AI key | Reporter config |
Editor extensions
Piwi in VS Code and the JetBrains IDEs: record a test at the cursor, run it and stop it at a breakpoint, and read the latest CI failures at the lines that failed.
| Feature | What it does | Needs | Where |
|---|---|---|---|
| Editor extensions | In VS Code and the JetBrains IDEs: the latest CI failures at their lines with the heal as a quick fix, the tests behind each locator and file, and the locators an unsaved change breaks. | the editor extension | VS Code extension, JetBrains plugin |
| Editor connection | Connect the editor extensions to your instance: the connection the reporter uses, or a browser sign-in that creates a key for the editor, saved for that instance only. | the editor extension | Piwi: Connect…; Settings → Tools → Piwi in a JetBrains IDE |
| JetBrains plugin | The editor extensions in WebStorm, IntelliJ IDEA Ultimate, Rider and the other JetBrains IDEs with the LSP API: what the plugin needs, the failures in its tool window, Code Vision above the code, and its actions under Tools → Piwi. | the editor extension | JetBrains IDEs: Tools → Piwi, the Piwi tool window |
| Remote development | The editor extensions in a remote VS Code window (Remote SSH, WSL, Dev Containers, Codespaces) or on a JetBrains Gateway backend, with their runs reached from Piwi Picker through a forwarded port. | the editor extension | A remote VS Code window; a JetBrains Gateway backend |
| Record tests from the editor | A browser your project's own Playwright opens from VS Code or a JetBrains IDE, and each step you take there written at the cursor as you go, with verified locators and calls to your page objects. | the editor extension | Piwi: Record here…; Tools → Piwi → Record here… in a JetBrains IDE |
| Recorded code | What a recording from the editor writes: locators verified on the page, a wait for each new page, the imports it needs, calls to your page objects and passwords read from the environment, shaped for the whole repository by the '@piwi' options in the Playwright config. | the editor extension | playwright.config.ts → '@piwi' → codegen |
| Runs from the editor | Run tests from VS Code or a JetBrains IDE, follow the run in the status bar, and see its results laid over the latest CI run's failures within a second of its end. | the editor extension | Piwi: Run the tests that reach this file, Piwi: Run a saved selection…; the status bar |
| Test card | Hover a test in VS Code or click its result in a JetBrains IDE: its latest runs as a strip, each linked to its run, how many passed, its median duration, its last failure, its owner, tags and quarantine. | the editor extension | The test's hover in VS Code; a click on its result icon in a JetBrains IDE |
| The editor's status bar | The Piwi item in VS Code's or a JetBrains IDE's status bar: the latest run of your branch or the run in progress, for the config of the file you edit, red only for a new failure a run you started from the editor produced. | the editor extension | The status bar of VS Code or a JetBrains IDE; piwi.statusBarAlert |
| Runs started outside Piwi | A Playwright run you start yourself, in a terminal or with a JetBrains IDE's own Run, in a folder of your editor's workspace, follows that editor window: it takes its controls as a run Piwi started does, and its breakpoints with piwi.breakpoints set to Every run. | capture fixtures | npx playwright test in a terminal of the workspace, or a JetBrains IDE's gutter Run and Playwright run configurations; PIWI_EDITOR=off runs it alone |
| Breakpoints in the browser | Set a breakpoint in VS Code or a JetBrains IDE: the next test you debug with Piwi pauses there in a headed browser, with Piwi's bar to resume, step, or pick a locator that replaces the one on that line. | capture fixtures, the editor extension | The editor's breakpoints; piwi.breakpoints, or Settings → Tools → Piwi in a JetBrains IDE |
| Pause and step from the editor | Pause a run Piwi started from VS Code or a JetBrains IDE, step it call by call, run it to the cursor, resume or finish it, with the paused line marked in the editor and your breakpoints applied as you change them. | capture fixtures, the editor extension | Piwi: Pause the run, Resume the run, Step to the next call, Run to the cursor; Tools → Piwi → Run control in a JetBrains IDE |
| Code from a pause | At a test paused or failed in a run Piwi started, an assertion, a region's ARIA snapshot or a mock of a request the page made written above the stopped line, a locator picked or steps recorded there, and the count of the locator at the cursor on the stopped page. | capture fixtures, the editor extension | The paused line's CodeLens in VS Code, Piwi: Write code at the stop…; its inlay and Tools → Piwi → Run control in a JetBrains IDE |
| Debug in my editor | From a failure's page, the failing line opened in VS Code or a JetBrains IDE and, once you say yes there, the test run headed with one worker to stop at that line, the locator healing's suggestion outlined on the page. | capture fixtures, the editor extension | Execution → Source, beside the failing line's frame |
| Failures in the editor | The latest CI run's failures at the lines that failed, with the heal and the fix plan as quick fixes, your local runs laid over them, each failing line followed through your edits, and the failures view as a tree. | the editor extension | The Problems panel; the Failures view in VS Code, the Piwi tool window in a JetBrains IDE |
| Coverage in the editor | The lines your tests ran, marked in VS Code and the JetBrains IDEs, Rider included: the lines run and not run, the tests behind each function and line, and the lines changed since the coverage run. | capture fixtures, a backend integration, the editor extension | Application files in the editor; Piwi: Show or hide the coverage marks, under Tools → Piwi in a JetBrains IDE |
| CI runs in your editor | A CI run of your branch while it runs, read-only beside your own: its tests and progress, the line each running test is at, and its pages from the team instance's live view. | the editor extension | The CI Runs view of VS Code's Piwi panel; the CI run tab of the Piwi tool window in a JetBrains IDE |
| Open in editor | Every source path in the dashboard jumps to that file and line in VS Code or JetBrains. | reporter | any source path |
Browser extension
Piwi Picker, in Chrome, Edge and Firefox: pick and lint locators on the live page, record a flow as a spec, and turn a bug you reproduce into a failing test. It works with no instance.
| Feature | What it does | Needs | Where |
|---|---|---|---|
| Browser extension | Record tests and bug reports, build and lint locators, and copy context for an agent, straight from the page. | the browser extension | Browser extension |
| Extension connection | Connect Piwi Picker to your instance in one click, and keep the URL patterns that tell it which project a page belongs to on the instance, for the whole team. | the browser extension | Browser extension → Settings; Project → Settings → Browser extension → URL patterns |
| Piwi Picker and your editor | One pairing reaches every VS Code and JetBrains window on your machine: the editor proves it holds the token before Piwi Picker sends it, a window opened later is found within seconds, and the Runs window says how each paired tool stands. | the browser extension, the editor extension | Browser extension → Settings → Editor |
| Pick an element | The ranked Playwright locators of one element of the live page, each checked against it, with the action, the assertion and a block of context for a coding agent. | the browser extension | Browser extension → Pick an element |
| Record a test | Clicks and fills across a site recorded into a runnable Playwright test, with checks of what the page shows and its evidence, paused, titled and replayed before you copy it. | the browser extension | Browser extension → Record |
| Lint overlay | The buttons, links and fields of a page no stable locator finds alone, each with the test id to add. | the browser extension | Browser extension → Pick → Lint overlay |
| Tested elements | On a live page, the elements your tests reach and through which tests, the buttons, links and fields none reaches, and the brittle locators to replace. | the browser extension | Browser extension → Tests → Tested elements |
| Developer tools | Beside the browser's DevTools: the ranked, verified locators of the element selected in the Elements panel. | the browser extension | DevTools → Elements → Piwi |
| Mock and slow down requests | A request the page made written as a page.route mock for a test, or slowed down or failed in your own tab, from DevTools. | the browser extension | DevTools → Piwi → Network |
| Record a bug report | Record the steps to a bug, mark what the page should show instead of what it shows, and get a failing Playwright test, a Markdown report and the evidence, from the browser. | the browser extension | Browser extension → Record → Check an element |
| Replay a recording | Play a recording or a bug report again in a tab, on your own dev server, and see whether the bug shows there; or run its steps with Playwright in the desktop app. | the browser extension | Browser extension → Tests → Replay |
| Bug reports on your instance | Reports sent from Piwi Picker kept with their steps and evidence, each rendered as a failing test for your project and followed through its runs until the fix holds. | the browser extension | Project → More actions → Bug reports |
| Runs window | A window beside the test's browser that pauses, steps and resumes the tests your editor runs, writes code from a stop through the editor, and shows a headless test's page live, to click, type and pick a locator on. | capture fixtures, the browser extension | Browser extension → Tests → Runs |
Desktop app
The dashboard as a local app, with no Docker and no Node: it receives your local runs, runs tests from its window, and takes the runs a team instance asks of your machine.
| Feature | What it does | Needs | Where |
|---|---|---|---|
| Desktop app | A local instance in a desktop shell — run tests, reproduce and bisect, with one-click MCP wiring. | the desktop app | Desktop app |
| Run on this computer | The run button in the desktop app's window: a run's, an execution's, a cluster's or a test's tests run in the project's linked folder in one click, or from the run dialog with their options, beside the project's CI actions. | the desktop app | Desktop app → the run button of a run, an execution, a cluster or a test |
| Desktop app runs | The tests the desktop app runs, paused, stepped and watched live from its window, with a pick on the stopped page's image and the code a stop makes, to copy. | the desktop app, capture fixtures | Desktop app → Local runs |
| Local runs tray | Every run the desktop app starts, counted as its own process counts its tests, a failed run's end leading to its first failure, one line a run in the compact list, and all of it kept through a reload. | the desktop app | Desktop app → Local runs |
| Run on my machine | Ask the desktop app or Piwi Runner on your own machine to run tests from the dashboard; the app asks before every run, and the run it reports is yours alone, kept out of everything the team sees. Experimental, off by default. | an administrator | Settings → Capabilities; Settings → Account → Connected apps |
| Compare with team instance | A test that fails in the desktop app shows how it does in your team instance’s CI: the same error seen there, the results of each environment, and what differs from the closest CI pass. | the desktop app | Desktop app → a failing execution → Team CI |
| Piwi Runner | A small app that takes Run on my machine requests without the dashboard: it asks before every run, runs it in your folder and stays in the tray. | an administrator | Piwi Runner |
Coding agents
Your test history as tools a coding agent calls, the workflows that tell it what to do with them, and the runs on your machine for it to follow and steer.
| Feature | What it does | Needs | Where |
|---|---|---|---|
| MCP server | A Model Context Protocol server that gives coding agents tools over your runs, failures and diagnoses, mostly read-only. | reporter | Settings → MCP server |
| Agent skills | Installable skills that teach a coding agent the Piwi failure-fixing workflow end to end. | reporter | reporter CLI (piwi skills) |
| Run control for agents | The test runs your editor or the desktop app starts, served to a coding agent on your machine as MCP tools: it follows a run, stops it, reads the stopped page as its ARIA snapshot, acts on it by ref and has Piwi write the code there, through the editor, or make it to copy in the desktop app. | capture fixtures | The Piwi runs MCP server, listed in VS Code; Tools → Piwi in a JetBrains IDE; the desktop app’s MCP server |
| Test functions catalog | The reusable helpers and page-object methods your suite calls, catalogued with their parameters. | reporter | Project → More actions → Test functions |
Command line
The piwi command the reporter package installs: wire a project up, gate a CI job, run a saved selection, reproduce a flaky test, write a spec from a recording.
| Feature | What it does | Needs | Where |
|---|---|---|---|
| Command line | What each piwi command is for, by the moment you reach for it: setting up, in CI, choosing the tests, chasing a flake, writing a test. | reporter | Terminal (npx @piwitests/reporter <command>) |
Trends and reports
The same numbers over weeks and months, and in front of people who never open the dashboard: dashboards, scheduled quality reports, markers for what you changed, and alerts.
| Feature | What it does | Needs | Where |
|---|---|---|---|
| Analytics | Cross-project trends (portfolio health, wasted CI time, pass-rate heatmap, browser matrix, insights feed) over any period against any other, from daily rollups that outlive retention. | reporter | Analytics |
| Dashboards | Your own arrangement of widgets with its own filters and period, private or shared, refreshed live and shown in TV mode on a wall screen; a shared dashboard shows nobody a project they cannot open. | reporter | Analytics → dashboard switcher, Edit, Duplicate; Analytics → Manage dashboards |
| Quality reports | The analytics page as a document for stakeholders: a rule-based verdict, headline numbers, the trend, what is being done and the risks, as PDF, HTML, Markdown or Excel, sent on a schedule by email, Slack or webhook and kept as snapshots. | reporter | Analytics → Quality report, Schedule…; Project → Quality report; Quality reports |
| Timeline markers | Your deploys and infra changes overlaid on the trend charts, so a step change has a cause. | reporter | Project → Runs chart → Markers |
| Notifications & alerts | Email, Slack, webhook and browser channels with per-project subscriptions, digests and mute. | reporter | Settings → Notifications |
Self-hosting
Operate a shared, self-hosted instance for a team.
| Feature | What it does | Needs | Where |
|---|---|---|---|
| Authentication & roles | Optional sign-in with Google/GitHub OAuth, the Administrator and Member instance roles, and five project roles granted to users or groups. | an administrator | Settings → Users |
| Access, roles and groups | Give each person the rights their job needs, project by project, through five project roles granted to users or groups; a Project admin manages the members of their own projects. | an administrator | Settings → Permissions, Settings → Groups; Project → Settings → Members |
| API keys | Long-lived tokens that let the reporter, CI and scripts sign in, shown once and revocable at any time. | reporter | Settings → Account; Settings → Users |
| Choose what you use | Turn on the capabilities the instance and each project use and decline the rest, so the dashboard stops showing what nobody set up. | an administrator | Settings → Capabilities; Project → Settings → Capabilities |
| Localization | Each viewer’s date and time format and time zone, and the instance default an administrator sets. | reporter | Settings → Localization |
| Data retention & cleanup | Cap how much run history you keep, with a nightly sweep and manual bulk cleanup. | an administrator | Settings → Storage |
| Backup & restore | What to copy for a safe backup of the database and file storage, and how to restore it. | an administrator | operator (filesystem) |
| Metrics and rollup export | The metric catalog as OpenMetrics for Prometheus and Grafana, and the daily rollups as JSON or CSV for BI tools; both pulled by your tools, never pushed. | an administrator | /api/metrics; rollup export |
| Tracing with OpenTelemetry | A trace of every request the server serves, with each SQL statement it ran, sent to an OpenTelemetry collector you run. | an administrator | operator (OTEL_EXPORTER_OTLP_ENDPOINT) |
The pieces
What you install or reach, how to get each piece, and when you need it.
| Piece | What it is | How to get it | When you need it |
|---|---|---|---|
| Dashboard server | The dashboard, its REST API and the MCP server in one Node process. It keeps runs in SQLite (default) or PostgreSQL, and traces, reports and attachments on local disk (default) or S3-compatible storage. | The Docker image phenx/piwitests-server (also ghcr.io/piwitests/platform), npx @piwitests/server (Node.js 22+), a one-click deploy template, or the desktop app. | Always — every result lands in one. Where to run it is the first setup decision. |
| Desktop app | The same server in a native window, bound to 127.0.0.1. It receives your local runs with no URL or token in the config, runs your tests from the window, reproduces a failure or a flake and bisects it in a throwaway worktree, imports a blob report or trace dropped on it, and connects AI assistants to its MCP server in one click. | Installers on the GitHub releases page: Windows x64 (.exe or .msi), Apple-silicon macOS (.dmg) and Linux x86-64 (.AppImage, .deb, .rpm). They are unsigned, so the OS warns on first launch. | One developer running Playwright on their own machine, with no server to operate. |
| Live demo | The real dashboard on seeded data, running entirely in your browser — no backend, nothing kept. | https://piwitests.dev/demo/ | Looking around before installing anything. |
| Reporter | @piwitests/reporter, a Playwright reporter that streams each run to the dashboard while it executes: results, errors, steps, traces, screenshots, attachments and the HTML report. The first run under a new project name creates the project (with authentication on, the key needs access to all projects). | npx @piwitests/reporter init --server-url <url> --project <name>, or npm install --save-dev @piwitests/reporter and a line in playwright.config. It finds a running desktop app by itself. | Always, for live results. Runs recorded before Piwi can be imported instead. |
piwi CLI | The command-line tool that ships with the reporter. init wires a project up and skills installs the agent skills; gate fails a CI job on the dashboard’s analysis, select and run resolve and run a saved test selection, and report prints a quality report; preflight lists the test locators an uncommitted change breaks, flake makes a flaky test fail on demand and verifies the fix, bug writes a bug report’s failing test, probe runs the dashboard’s probe plan, codegen turns a Piwi Picker recording into a spec, and ai manages AI-step artifacts. | npx @piwitests/reporter <command>. Once the reporter is a project dependency, npx piwi <command> works too; before that, it fetches an unrelated piwi package. | Setting a project up, gating merges in CI, checking a change before it runs, reproducing a flaky test, and running only the tests that matter. |
| Capture fixtures | An extended Playwright test (piwiFixtures) that records network timing, console warnings and errors, Web Vitals, browser dialogs, failure-time ARIA snapshots and the locator snapshots locator healing ranks. | A tests/fixtures.ts exporting base.extend(piwiFixtures) — init creates it — with test imported from it in your specs. | Recommended: locator healing, slow endpoints, Web Vitals and the richer failure evidence need it. |
| AI steps | page.piwiLocator() and page.piwiRun() take plain English. Each prompt is resolved once, through the dashboard’s AI provider, into an artifact you commit, and every later run replays it as ordinary Playwright with no model call. | Part of the reporter: extend test with extendPiwiAi, then author the missing entries with npx @piwitests/reporter ai resolve. | Writing steps in plain English without a model in the loop at run time. |
| Backend instrumentation | Packages for the app under test that, in development and test, attach what the server did for each request to its response, so a failing test shows the server’s warnings and errors next to the request that caused them. @piwitests/instrumentation-nitro (Nitro / Nuxt) also sends server spans; PiwiTests.Instrumentation.AspNetCore covers ASP.NET Core, and PiwiTests.Instrumentation.Serilog is its sink for apps that log through Serilog. Both packages serve the route manifest. | npm install @piwitests/instrumentation-nitro, or dotnet add package PiwiTests.Instrumentation.AspNetCore (plus PiwiTests.Instrumentation.Serilog when the app logs through Serilog). | Your app under test runs on Nitro, Nuxt or ASP.NET Core, and a UI failure may start as a server error. |
| Browser extension (Piwi Picker) | A Chrome, Edge and Firefox extension. On any page it picks ranked, stable Playwright locators, flags poor locator targets, suggests assertions, records actions as a runnable spec, and turns a bug you reproduce into a failing test and a report; its DevTools panel adds a locator console, response mocks and viewports. It works on its own; connected to an instance, it also matches your test functions, shows which elements your tests reach, and sends bug reports to the project. | The Piwi Picker listing on the Chrome Web Store (https://chromewebstore.google.com/detail/piwi-picker/pakhnokpjboejcghgcmkjlpnogfjihhe), which covers Edge and other Chromium browsers, or on Firefox Add-ons (https://addons.mozilla.org/firefox/addon/piwi-picker/). | Writing or fixing locators against a live page, or reporting a bug as a failing test. |
| Editor extensions (VS Code, JetBrains) | The Piwi extension for VS Code (and Cursor, VSCodium) and the Piwi plugin for JetBrains IDEs with the LSP API (WebStorm, IntelliJ IDEA Ultimate, Rider). They record tests in a browser the project’s own Playwright opens, written at the cursor as you go; show the latest CI failures on the branch at their failing lines with the locator heal as a quick fix, the tests behind each locator and file, brittle locators and the locators an unsaved change breaks; and set up Piwi’s MCP server for the editor’s agent. | Install Piwi (piwitests.piwi) from the VS Code extensions view or the Visual Studio Marketplace (https://marketplace.visualstudio.com/items?itemName=PiwiTests.piwi), or in a JetBrains IDE from Settings → Plugins or the JetBrains Marketplace (https://plugins.jetbrains.com/plugin/34674-piwi). It reads the reporter’s connection (the environment, the workspace .env or the desktop app); otherwise Piwi: Connect signs in with the browser and creates an API key for the editor. | You want CI results where you edit the tests: failures at their lines, heals applied in place, and the tests a change reaches. |
| MCP server | Built into every dashboard at /mcp, with the same pd_ API keys as the REST API: tools that give a coding agent your runs, failures, clusters, flaky tests, diagnoses, fix plans, locator healing, scenario gaps and bug reports, plus the setup_piwi prompt. The desktop app adds three tools that work on local files, and tools that follow and steer the Playwright runs it starts. | Point an MCP client at <dashboard>/mcp; the dashboard’s MCP server page has per-client snippets, the desktop app writes client configs in one click, and the VS Code extension provides the server to the editor’s agent. | A coding agent should read your results and hand back fixes. |
| Agent skills | Seven SKILL.md workflows (set Piwi up, investigate a failure, apply locator healing, stabilize flaky tests, run the right tests, write the missing test, fix a reported bug) that teach a coding agent what to do with Piwi’s evidence. The six workflow skills use the MCP tools when they are connected, and the dashboard otherwise. | npx @piwitests/reporter skills add; init installs the six workflow skills (all but setup-piwi). | Your coding agent should follow the Piwi workflow end to end. |
| REST API | Everything the dashboard does, over HTTP with pd_ API keys (a Bearer or X-API-Key header). Each instance serves its own OpenAPI reference at /settings/api (the spec is /_openapi.json). | Your dashboard’s Settings → API reference page (the demo’s is at https://piwitests.dev/demo/settings/api). | Scripting against Piwi outside the reporter and the MCP server. |
| Metrics and rollup export | GET /api/metrics serves the metric catalog’s current values per project in the OpenMetrics format, for a Prometheus or Grafana you run; GET /api/rollups streams the daily rollup rows as JSON or CSV for a BI tool or spreadsheet. Both are pulls: Piwi sends nothing anywhere. | Set PIWI_METRICS_ENABLED=true to serve /api/metrics (off by default) and point a scrape job at it; /api/rollups needs no flag. With authentication on, both take an API key and cover its user’s projects. | An operator charts test health next to other services, or loads the daily numbers into a BI tool. |
Choosing a setup
The decisions a team makes once, what happens if you make none, and the page that settles each.
Where should the dashboard run?
Default: Nothing runs until you pick one. Details
- Live demo — Looking around first — seeded data in your browser, nothing kept.
- Desktop app — One developer on Windows x64, Apple-silicon macOS or Linux x86-64; no Docker or Node needed.
- Docker — A shared, long-lived instance for a team — the recommended path.
npx @piwitests/server— A quick local run where Node.js 22+ is installed.- One-click deploy — A shared instance from a template: Railway, Render, Fly.io or Koyeb, or a Compose file for Coolify or Dokploy on a server you already run. Each provisions one container, a persistent volume and authentication on.
SQLite or PostgreSQL?
Default: SQLite, created automatically in .data/piwi.db. Details
- SQLite — Zero configuration; one writer at a time is ample for a team’s test volume.
- PostgreSQL 14+ — Set
PIWI_DATABASE_URLwhen several dashboard replicas share one database, ordatabase is lockedshows up under load. Migrations run on startup either way.
Where do traces, reports and screenshots go?
Default: Local disk, under .data/storage/. Details
- Local disk — No configuration; back the directory up with the database.
- S3-compatible storage —
PIWI_STORAGE_TYPE=s3with a bucket and region — AWS S3 (static keys optional, instance roles work), Cloudflare R2, DigitalOcean Spaces, RustFS and others.
Turn authentication on?
Default: Off: every request is treated as an administrator. Details
- Off — Only on localhost or in the desktop app.
- On — Anything reachable from a network:
PIWI_AUTH_ENABLED=trueandPIWI_AUTH_SECRET, then instance and project roles granted to users or groups,pd_API keys for CI, agents and editors, and optional Google or GitHub sign-in. Browser sign-in then needs HTTPS (or localhost). SetPIWI_SECRET_KEYtoo, and work through the production checklist.
Add the capture fixtures?
Default: Off: init creates the fixtures file, and each spec opts in by importing test from it. Details
- Yes (recommended) — Import
testfrom the fixtures file in your specs, and locator healing, slow endpoints, Web Vitals, the console card, the dialogs lane and failure-time ARIA snapshots light up. - Not yet — Results, traces, screenshots, failure clusters and flaky scores work without them, and an uploaded trace still yields console, network and the failure-time ARIA snapshot.
Connect an AI provider, and which one?
Default: Off. Clustering, flaky scoring, failure clues, locator healing and fix verification need no model. A provider is set in Settings → AI or with environment variables, which win. Details
- No AI — Everything deterministic still works. A model adds diagnoses with patches, AI-step authoring, the quality-report narrative and, with an embedding model, similarity merging of clusters.
- Anthropic — The recommended provider:
PIWI_AI_PROVIDER=anthropicandPIWI_AI_API_KEY. - OpenAI —
PIWI_AI_PROVIDER=openaiwithPIWI_AI_BASE_URL(OpenAI’s own endpoint),PIWI_AI_MODELandPIWI_AI_API_KEY. - OpenAI-compatible or local — Ollama, LM Studio, vLLM and the like:
PIWI_AI_PROVIDER=openaiwithPIWI_AI_BASE_URLpointing at that server andPIWI_AI_MODEL, so nothing leaves your network. - Claude Code CLI — The desktop app, or a server with
PIWI_CLAUDE_CLI_PATHset, runs the localclaudeCLI on its own sign-in (PIWI_AI_PROVIDER=claude-cli): your Claude subscription in the desktop app, an Anthropic API key or a cloud provider on a server.
Connect source control?
Default: No token: runs still carry the branch and commit the reporter detects, and public repositories are read anonymously (rate-limited). Details
- No token — History, clusters, flaky scores and locator healing are unaffected.
- A GitHub, GitLab or Bitbucket token — Set instance-wide (Settings → Source control) or per project. Read access opens private repositories to the diff in AI diagnosis, What changed, uncovered changes and CODEOWNERS ownership. Write access adds pull-request comments, commit statuses and auto-heal pull requests (GitHub, GitLab, Bitbucket Cloud), with
PIWI_SITE_URLset, and CI re-runs from the dashboard.
What should block a merge?
Default: Playwright’s own exit code: any failed test. Details
- The exit code — You only need "did anything fail".
piwi gate— The dashboard’s analysis decides: how many tests failed, newly failed, newly turned flaky or are quarantined, a failure cluster never seen before, required tags, or a selection whose tests must run and pass.
Which MCP tools should agents see?
Default: Every tool whose capability is not declined. Details
- All — The agent can reach every part of Piwi.
?modules=core— Append to the MCP URL (any comma-separated set of core, workflow, healing and agents) to narrow the list for a tighter token budget; it never re-enables a declined tool.- Decline a capability — Declining one on Settings → Capabilities, or a whole module in its presets, drops the tools that depend on it for every client; tools that need no capability stay.
How much history to keep?
Default: Every run: run pruning is opt-in. Details
- Everything — The history is the point; budget disk for traces and reports.
PIWI_RETENTION_DAYS— A nightly sweep deletes older runs with their files. Kept runs stay,PIWI_RETENTION_MIN_RUNSkeeps each project’s newest runs, and pruned runs stay counted in the analytics rollups.
Start from history you already have?
Default: Trends start with the first reported run. Details
- Start fresh — Nothing to import.
- Import — An administrator backfills from Playwright blob reports or bare trace files with the project’s Import button, or drops them on the desktop app; imports are idempotent and send no notifications.