Reports
Use Reports to see how often tests pass, which tests are flaky, and how much time reruns cost. You can also see which cases are automated, how much time people spend running cases, and which requirements have cases that pass. Every report uses the same results from people, pipelines, and agents.


Open a report #
- Press g o to open Reports.
- Select a report. Each row shows the report's headline number.
- Choose 7, 14, 30, or 90 days. Pass rate uses calendar days and includes today. The other reports count back that many 24-hour periods from now.
Use j and k to move between reports. The day and producer dropdowns use the site's light or dark theme. If a report fails to load, the page shows what went wrong using the information the server returns. Choose Retry to load it again.
From the command line, mainworthy stats --of <report> prints the same report as JSON. For example, use
mainworthy stats --of flaky --days 14. Over HTTP, use POST /api/p/<project>/stats (see the API).
Agents use the CLI or HTTP because the agent tools have no stats command.
The flaky, rerun, manual effort, and automation reports show 20 rows per page. The coverage report shows 100. Each list says "Showing N of M". The headline numbers count every row across all pages.
Choose Next page or Previous page, or press n or p. On a phone, open Actions and choose Next report page or Previous report page. If you change the day window or a live update removes the page you are reading, the list returns to the first page. If a page fails to load, Previous page and p still return to the preceding page.
The CLI accepts --limit (up to 200 rows, or 500 requirements for coverage) and --cursor. Over HTTP, use
limit and cursor. Each reply with a limit includes total, the number of rows across all pages, and cursor,
the value for the next page or null at the end. To continue, send the returned cursor with the same report and
day window. Each page reads current results. If results change between pages, start at the first page to see the
new order.
Pass rate #
For each day, the pass rate divides passes by the total number of passes and failures. The report counts skips and blocks separately.
- Each test counts once per job, producer, method, and target. The producer is the person, pipeline, or agent that sent the result. A target is a commit in one repository and environment, or a run with no commit. Two environments for the same commit count separately.
- The report uses the latest attempt with a pass or failure. If two results name the same attempt, the worse one counts. If a rerun passes after a failure in the same job, the pass counts and the failed attempt appears in time lost to reruns. The gate counts results the same way.
- If the producer corrects a result, the correction counts in its place.
- The report counts failures recorded during quarantine separately, not as failures. Starting or ending quarantine leaves earlier results unchanged.
- The web page uses your browser's time zone. The CLI and API use UTC by default. To set a different zone, supply
a time zone name, for example
--zone Europe/Berlin. Mainworthy rejects offsets such as+05:30. - To limit the report to results from people, pipelines, or agents, choose a producer. On the CLI use
--method human,autooragent. - If the window has no results, the report shows links to pipeline reporting instructions and to Runs, where people record results. The chart and table appear only when the window has results.
Flaky tests #
This report shows automated tests that change between passing and failing for the same job, producer, repository, commit, and environment. Mainworthy records each change in outcome, or flip, when the report arrives. It counts flips between pipeline attempts and between tries within a runner attempt. If the producer later corrects either result, the flip stops counting.
The list sorts by the number of flips in the window, highest first, and marks tests in quarantine. The headline compares the number of flaky tests with all automated tests that reported in the window, regardless of producer.
Time lost to reruns #
When a later pipeline attempt repeats a test on the same job, commit, and producer, the report counts the earlier attempt's duration as time lost. It counts each repeated attempt once, even if it receives several reports for that attempt. It uses the duration of the worse result, or of the later result if the outcomes tie. The report lists the tests with the most time lost first.
A correction replaces the original result and its duration, regardless of which attempt carried the correction. In older history with two corrections to one result, the report takes the worse correction that still stands. If the outcomes tie, it takes the later result. Only corrections for the same project, test, producer, target, and run count. The report follows up to 64 correction links. If any branch continues beyond that, it counts the attempt once with unknown time and ignores durations and runner tries from the unresolved chain.
Earlier tries within a runner attempt also count as reruns, even when the pipeline ran only once. Each try contributes its reported duration. If the pipeline repeats the entire attempt, the report uses the attempt duration once. Playwright already includes known try durations in that number. A try without a duration still counts as unreported time even if the attempt has a duration. Surefire, for example, times only one execution. If the repeated attempt has no duration, the report keeps any known try durations. If the pipeline never repeats the attempt, the report counts only its earlier tries. A correction replaces the original result's tries too.
Large result histories can take longer to report. Each test's time and the total stop at 9,007,199,254,740,991 ms, JavaScript's largest safe integer. Historical or imported times above the current input limit cannot overflow the report. A time at the ceiling means at least that much was reported. Negative stored durations cannot reduce a test's time or the total below zero.
Automation #
Mainworthy counts a case as automated when an automated test links to it. The rate divides the automated cases by the active cases eligible for automation. A case marked as unable to be automated stays out of the rate unless a test covers it. For cases without an automated test, the report gives counts for To automate, Not decided, and Cannot be automated.
The backlog lists cases that can be automated and still need an automated test. It puts cases people ran by hand most often in the selected window first. If people record a duration, the backlog shows the time. Each case's total stops at 9,007,199,254,740,991 ms, including larger historical or restored durations. A reported zero stays zero. If no run reports a duration, the time stays unknown.
Manual effort #
Choose Manual effort to rank active cases by the total known time people spent running them, greatest first. A few long executions can rank above many short ones. Cases with linked automated tests still appear if people run them, marked has automation. Cases marked as unable to be automated also appear. The Automation report still ranks its backlog by frequency and shows the automation rate.
Each row shows how many times people ran the case, how many runs have a duration, how many do not, and the total and average for timed runs. If only some runs have a duration, the total says partial. If none have a duration, both time values say Unknown. A reported zero stays zero. Unknown totals follow known totals. Equal totals sort by execution count, then case number. Totals and averages stop at 9,007,199,254,740,991 ms.
The report shows the number of 24-hour periods and the exact start and end. A correction replaces the original timing once in the original period, even if the correction arrives later. For imported history with competing corrections, the report takes the worse outcome or, if they tie, the later result. The report follows up to 64 correction links per execution. If any branch continues beyond that, the execution counts with unknown time. Corrections from other projects leave its time unchanged. The average uses only runs with a reported duration.
Use mainworthy stats --of manual-effort --days 30 for the same paginated report as JSON.
Coverage by requirement #
A requirement is a key that a case can claim in its Markdown with covers: [KEY]
or on a capture outline's title line with @KEY. The report shows the active cases that cover each requirement
and marks requirements with no active case. The headline counts all requirements, including those on later pages.
Mainworthy uses the latest result in the window for each of a case's tests. If any test failed, the case counts as failed. If none failed and at least one passed, it counts as passed. If the only results are skips or blocks, it counts as skipped or blocked. If none of its tests has a result in the window, it counts as not run.
The report marks a requirement failed if any of its cases failed. Choose a requirement to see its cases and their outcomes. Failed cases come first, followed by skipped or blocked cases, cases not run, and passed cases. Choose a case to open it. Back returns to the report with the requirement still open.
The reply of stats --of coverage counts each requirement's cases. With --requirement KEY, the reply includes
only that requirement. Its list gives the case numbers and each outcome, which can be passed, failed,
other (skipped or blocked), or notRun.
When new tests span more than 100 files, Mainworthy handles the first 100 files with the report. After it saves the results, background jobs handle the remaining files in pages. Each page uses the project's current policy, so Create cases and Ask questions may appear shortly after the receipt. Each deferred question covers only tests from its original report and uses that report's actor. Tests from later reports keep their own requirements for linking to a case. If a page stops partway through, Mainworthy retries it without recording duplicate decisions.
Project and instance exports both include pending pages. After import, background jobs finish them under the restored policy. An archive imports only into a build of the same archive version (Your data).
When you answer a question about a file, Mainworthy refreshes overlapping deferred questions about that file. It closes questions with no tests left to link. Each remaining question keeps its original report and producer.