> ## Documentation Index
> Fetch the complete documentation index at: https://docs.testsprite.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Insights

> Your project's health at a glance: what to fix, how quality is trending, and who changed what.

![Insights page: Trends](https://mintcdn.com/testspriteinc/NgwJ2RcRMRwjh7Vv/images/project-overview.png?fit=max\&auto=format\&n=NgwJ2RcRMRwjh7Vv\&q=85\&s=dc1509610a8a858c45a41af3292857fb)

The **Insights** page is your project's health report, under **Analytics** in the project sidebar. It answers three questions in one screen: *what needs attention right now*, *how is quality trending*, and *what happened lately*.

## How to Read This Page

| Section | What it tells you |
| - | - |
| Next step card | The single most useful action right now: generate tests, re-run failures, or nothing to do |
| <kbd>Trends</kbd> | Four quality metrics across your last runs: is the project getting better or worse? |
| <kbd>Issues to Fix</kbd> | The triage queue: failing tests grouped by root cause, worth-fixing-first on top |
| <kbd>Use Case Coverage</kbd> | Which use cases are covered, planned, or still gaps |

At the top, TestSprite also shows contextual prompts when they apply, such as *"We noticed changes in your repo"* with a **Re-run all tests** button when your code has moved since the last run, or a suggestion to enable the GitHub Action for a connected repo.

## Issues to Fix (Triage Queue)

The queue lists every test case whose **latest result** is failed or blocked, but one row is **one root cause, not one test**. Failures with the same diagnosis (same HTTP status and error signature) are clustered, so a single backend bug that breaks eight tests shows up as one row tagged *"8 tests"*.

**How it's sorted:** failed groups above blocked ones, then groups containing a **regression**, then the largest cluster (one fix clears the most tests). Blocked tests are collapsed behind a *"Blocked · N tests that could not run"* toggle so they don't bury real failures.

| Badge | Meaning |
| - | - |
| <kbd>New</kbd> | A regression: this test used to pass and now fails. Look at what changed. |
| <kbd>Flaky</kbd> | Within the last 5 runs this test has both passed and failed. Suspect the test or the environment before the product. |
| <kbd>N tests</kbd> | How many test cases share this root cause |

**Clearing the queue:**

1. **Expand the top row** to see the **Suggested fix** and the affected tests. Click any test pill to open its detail drawer without leaving the page.
2. **Decide** whether it's a real bug, a flaky test, or a stale test. <kbd>New</kbd> points at a regression, <kbd>Flaky</kbd> at instability; for anything ambiguous, check the test's history in its detail view.
3. **Act, then re-run.** For product bugs, click <kbd>Copy Fix Prompt</kbd> at the top of the card to copy a prompt covering every group in the queue (diagnosis, endpoint, response, suggested fix, affected tests), and paste it into your coding agent. After a fix, or for suspected flakes, click the row's **Re-run** button to re-run every affected test at once.

There's no manual "dismiss": the queue is derived from results, and a row disappears the moment its tests pass on a re-run. An empty queue shows **"Nothing to fix."**

## Quality Trends

The <kbd>Trends</kbd> widget plots **one point per run** (up to the last 50 runs, not calendar time) across four metrics. Each card shows the current value, a sparkline, and a delta arrow vs. the previous run (green means moving the right way):

| Metric | What it counts | Good direction |
| - | - | - |
| Pass rate | % of tests passing, carrying forward each test's last known verdict | Up |
| Issues caught | Tests currently not passing | Down |
| Fixed by agent | Cumulative count of tests that went failed/blocked → passed | Up |
| Regressions | Tests that went passed → failed in that run | Down |

Common patterns:

* **Failing several runs in a row**: likely a real regression. Check what changed around the first failing run (the Activity Log helps).
* **Alternating pass / fail**: a flaky test or unstable environment, not a product bug. These also get the <kbd>Flaky</kbd> badge.
* **Sudden drop across many tests at once**: usually an environment or authentication problem rather than many simultaneous bugs.

## Use Case Coverage

![Use Case Coverage — category and pass-rate donuts above the All / Covered / Planned / Gap suite table](https://mintcdn.com/testspriteinc/NgwJ2RcRMRwjh7Vv/images/insight-latest-run.png?fit=max\&auto=format\&n=NgwJ2RcRMRwjh7Vv\&q=85\&s=8ce8437b40b5a4ba89084a2f647ebec2)

**Use Case Coverage** breaks your use-case map into <kbd>Covered</kbd> / <kbd>Planned</kbd> / <kbd>Gap</kbd> tabs with per-suite pass rates. <kbd>Gap</kbd> rows have a **Generate tests** shortcut and <kbd>Planned</kbd> rows have **Run tests**. Low-pass-rate rows are tinted so weak suites stand out.

## Project Activity Log

![The Activity Log — all project activity, newest first, with user and event-type filters](https://mintcdn.com/testspriteinc/NgwJ2RcRMRwjh7Vv/images/insight-activity-log.png?fit=max\&auto=format\&n=NgwJ2RcRMRwjh7Vv\&q=85\&s=a579ba4296051b3baaf0004a528df509)

The activity feed has its own page: <kbd>Activity Log</kbd> under **Activity** in the project sidebar. It lists all project activity, newest first; each row shows **who did what to which entity, and when**, with before → after values for edits. It covers test cases, use cases, runs, schedules, environments and sources, members and roles, GitHub triggers, and Slack or email notifications.

Filter by **user**, **time window** (last 24 hours / 7 days / 30 days / all time), or **event type** to answer *"who changed this test?"* or *"what happened right before the pass rate dropped?"*.

## Suggested Workflow: Weekly Quality Review

1. **Clear the triage queue**: walk <kbd>Issues to Fix</kbd> top to bottom; the sorting already puts the highest-leverage fix first.
2. **Read the Trends deltas**: a falling pass rate or rising regressions is the week's headline.
3. **Scan Use Case Coverage**: assign any <kbd>Gap</kbd> rows before the next release.
4. **Skim the Activity Log**: confirm nothing unexpected changed (tests deleted, schedules paused).

## Where to Go Next

> [card] [Test Report & Export](https://docs.testsprite.com/web-portal/results/test-report.md)
>
> Download a shareable PDF report for any run

> [card] [Rerun](https://docs.testsprite.com/web-portal/core/ui/ui-rerun.md)
>
> Re-run a single test, a failure group, or the whole project


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.