# Test Gaps Analysis Report

Unlock valuable insights into your code health with the SeaLights Test Gaps Analysis Report. Whether you're focusing on **immediate release stability** (**Release Quality Improvement**) or **long-term code health** (**Over Time Quality Improvement**), SeaLights will tailor your analysis for success, providing  comprehensive code coverage breakdowns within your chosen timeframe.&#x20;

***

{% embed url="<https://youtu.be/rysQsorHulw>" %}

## Key Metrics

### **Release Quality Focus**

* **Modified Coverage Gap:** This key metric reveals immediate testing needs. Prioritize these gaps to ensure confident and stable releases.
* **Untested Modified Methods:** A high number (>100) indicates significant testing gaps. Focus on relevant sections for efficient improvement.

### **Over Time Quality Focus**

* **Overall Coverage Gap:** Track your journey towards comprehensive code coverage.
* **Untested Methods:** Gain a long-term perspective on areas needing attention for sustainable quality enhancement.

***

## Layers of Data&#x20;

### **Level 1: App Test Gap Summary**

High-level overview of untested methods across your application within the chosen timeframe, including coverage gaps and total numbers:

* **Overall Coverage Gap:** Understand the percentage of methods that lack testing across your entire application.
* **Modified Code Coverage Gap:** Focus on newly changed code by seeing the percentage of untested methods specifically within recently modified areas. This helps prioritize testing for immediate release stability.
* **Total Untested Methods:** Get the raw number of methods awaiting testing, along with the total number of methods in your application for context.

**Actionable Insights at Your Fingertips:**

* **Adjust the Date Range:** Easily switch between different timeframes to track coverage trends or analyze specific sprints.
* **Download as CSV:** Export the data to your preferred spreadsheet tool for further analysis and sharing.
* **Delete the Report:** Keep your reports organized by removing outdated ones when needed.

{% hint style="info" %}
**Note:**&#x20;

* Generating report data might take a few minutes, especially for the first time or after significant code changes.
* The percentages represent **coverage gaps**, not actual coverage.
  {% endhint %}

<figure><img src="https://1255034336-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxSagdStwf6CJ9cI6lA68%2Fuploads%2FJ5zt4WdMvc4avYVAHBe7%2Fimage.png?alt=media&#x26;token=63794c68-6b5d-40f0-9931-b11d041312b2" alt=""><figcaption><p>TGA Report List</p></figcaption></figure>

### **Level 2: Files**

Individual files with their coverage details, contributor information, and direct access to code locations in your repository for further scrutiny.&#x20;

Sort by file name, biggest gaps, biggest number of untested methods, etc. Prioritize based on importance (logic, calculations, etc.).

<figure><img src="https://1255034336-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxSagdStwf6CJ9cI6lA68%2Fuploads%2FzhF9ZT8XbIa0yJtsk4Sq%2Fimage.png?alt=media&#x26;token=f6d807c1-a2cc-443d-a871-feb9b9fa8d3f" alt=""><figcaption><p>Test Gaps Analysis</p></figcaption></figure>

### **Level 3: Methods**

Drill down to specific methods within key files to discuss changes, ignore irrelevant ones (starting from the next build), and gain in-depth understanding.

<figure><img src="https://1255034336-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxSagdStwf6CJ9cI6lA68%2Fuploads%2FCQV9Z0iTfrUl1YLNHybK%2Fimage.png?alt=media&#x26;token=112e6fc6-74ac-4a7d-965f-18dd59bc4461" alt=""><figcaption><p>Method List per File</p></figcaption></figure>

***

## Use Cases Overview

Test Gaps Analysis identifies untested areas, providing crucial insights for:

* **Prioritizing testing:** Focus resources on newly changed code for optimal impact.
* **Identifying outdated tests:** Eliminate redundant efforts and optimize testing efficiency (e.g., outdated code that continues to be tested, but is no longer in use by the application or system).
* **Assessing quality risk:** Gain a clear understanding of potential quality issues in recent changes.

SeaLights offers **dynamic analysis** that covers various test types, including Regression, Functional, API, Integration, Exploratory and manual tests. It analyzes all **builds**, all **test stages**, and all **code changes** within your chosen **timeframe**.

### **Essential Pre-requisites**

* **Scope your code:** Define relevant areas for analysis.
* **Clean irrelevant data:** Focus on actionable insights by removing unnecessary information..
* **Schedule reports:** Automate generation for consistent visibility.
* **Align with sprints:** Tailor reports to your development cycles.
* **Set up SeaLights tools:** Leverage the Code Viewer Chrome extension for deeper exploration.

### **Key Use Cases**

* **Definition of Done for Sprint Quality (DoD):** Ensure code added in the last sprint is adequately tested, by analyzing the specific sprint schedule and prioritizing test gaps in modified code.
* **Monthly Quality Report:** Gain a broader understanding of your team's overall quality performance, by analyzing a full calendar month and focusing on modified code to track quality trends.
* **Test Development:** Identify high-risk areas and prioritize test creation based on specific data, by choosing a month or quarter for more comprehensive analysis and looking at overall untested code to prioritize testing efforts.

***

**Ready to dive deeper?** Explore the specific guides associated with your chosen quality improvement approach and unlock the power of SeaLights Test Gaps Analysis!
