# Test Gaps: Modified Methods Focus

We're excited to introduce a new feature in the **Test Gap Analysis (TGA) report** that allows you to quickly focus on the most critical untested areas: a new switch button to display **only modified methods**.

<figure><img src="/files/DmtDcEiYuUnmSAseC2zF" alt="" width="563"><figcaption><p>New switch button to display <strong>only modified methods</strong></p></figcaption></figure>

### Why This Matters

The TGA report is crucial for identifying untested code. However, sometimes the list of all untested methods can be extensive, making it challenging to pinpoint the ones that correspond to recent code changes. This new capability helps you:

* **Focused & Faster Insights:** Quickly pinpoint and understand the impact of your latest modifications by focusing only on untested methods that correspond to recent code changes, eliminating visual clutter and accelerating your review.
* **Enhanced Quality Assurance:** More efficiently assess the coverage of your latest modifications, helping to ensure that no critical code changes are inadvertently released without adequate testing.

### How It Works

You'll find a new switch button in the TGA report interface. By default, this switch will be **off**, showing all untested methods as before.

* **Switch Off (Default):** \
  The report will display all untested methods within each file, providing a comprehensive view of your overall coverage gap.
* **Switch On:** \
  The report will filter the displayed methods. While the **Overall Coverage Gap** and **# of Untested Methods** columns in the main table will still show data per file (reflecting all untested methods), when you **expand a file**, you will only see the **untested methods that have been modified**. Furthermore, if a file contains ***only*** untested methods that were not changed recently, **that file will disappear entirely from the list**, making it easier to view only relevant files that had recent changes.

#### **Example**

Imagine a file with 10 untested methods. Historically, all 10 would be displayed when you expand the file. With the new switch turned "on," if only 1 of those 10 methods was recently modified, only that single modified method will be displayed when you expand the file, providing immediate focus on the change. If none of the 10 methods were modified, the entire file will no longer appear in the list when the switch is on.

***

This enhancement empowers you to more efficiently identify and address test gaps related to your active development, leading to faster and more targeted quality assurance.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sealights.io/knowledgebase/whats-new/december-2024/test-gaps-modified-methods-focus.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
