Coverage Trend Report
The Coverage Trend Report is designed to track and visualize code coverage performance for a specific application and branch over time. It provides a granular look at how different testing stages (e.g., Unit, Component, Integration) contribute to the overall quality of the codebase, allowing teams to monitor both Modified Coverage (new/changed code) and Overall Coverage (total codebase).
Why It Is Useful
This report is the primary health indicator for an application's testing lifecycle. It is particularly useful for:
Testing Efficiency Tracking: By monitoring Modified Coverage trends, teams can evaluate the efficiency and consistency of their testing process across different development cycles.
Quality Culture Benchmarking: Consistent high modified coverage over time indicates a mature quality culture where testing is integrated into the development flow.
Identifying Gaps: It highlights which test stages are underperforming or where coverage drops occur following major code refactors.
Correlation Analysis: Visualizing coverage alongside "Production Defects" allows stakeholders to identify correlations between testing efforts and production stability. Ideally, a high coverage trend should correlate with a decrease in defect density, validating the effectiveness of the testing strategy.

Detailed Functionality
1. Report Configuration & Persistence
First-Time Experience: Upon entering Quality Analytics / Coverage Trend, users can start fresh via the "Create new report" button.
Saving & Privacy: Reports must be manually saved to appear in the "Saved Reports" list. By default, newly created reports are private, though they can be shared or made public for organizational visibility.
API Support: Reports can also be generated and managed via the Quality Trend Report API.
2. Data Slicing (Filters)
App & Branch: Select a single application and a specific branch to analyze.
Date Range: Choose from presets (Last 1-12 months) or a custom range. A minimum of 4 weeks is recommended for meaningful trend analysis.
Analysis Mode (Builds):
All Builds: Aggregate data by intervals (1, 2, 3, 4 weeks or 1 month). When selecting 1 month, the data shown in the chart will start at the 1st of the relevant month. For the rest of the interval options, the data shown in the chart will start at the following Monday.
Reference Builds: Track only specific builds manually marked as "Reference" (e.g., Production or Release builds).
Test Stage Selection: A list of all test stages reported for the selected app and branch during the past year is available, ordered alphabetically. Click individual stages to include/exclude them. The aggregated coverage line (Bold Blue) recalculates dynamically.
3. Understanding the Charts

The report presents two essential charts and their corresponding tables:
Modified Coverage Chart: Tracks coverage of changed/new code. Code changes you haven’t tested are your quality risks. The higher the coverage, the lower the chances for escaping defects. Aim for consistently high coverage for minimized risks and a strong quality culture.
Overall Coverage Chart: Monitors the coverage of your entire codebase. Strive for a positive trend, primarily driven by covering newly added or modified code. Temporary drops might occur after significant code changes without immediate coverage.
The charts data is based on the following:
Aggregated coverage of the selected test stages
All selected builds within the selected date range. There are two options for selecting builds:
All builds, aggregated based on selected time interval: 1/2/3/4 weeks or month. Each point in the X-axis represents an interval and consider all code changes from the last build in interval X-1 and all related test stage coverage reported in builds within X.
Reference builds. Reference build X, as defined in SeaLights Coverage Dashboard, takes code changes from reference build X-1 and only considers coverage from test stages reported to that build. Each point in the X-axis represents a single reference build.

4. Advanced Visualization (Chart Elements)

Users can toggle additional layers of data to provide deeper context:
Coverage of All Test Stages: Displays a "Bold Green" line representing the aggregate of every reported stage, useful for comparing a specific subset against the total.
Number of Methods: Adds a bar chart representing the scope/size of the code being examined.
Coverage Quality Gate: Overlays the defined quality gate thresholds directly onto the chart to see if the team is meeting internal standards.
Production Defects: Upload a
.csvfile of production defects to see defects per interval, allowing for a direct correlation between low coverage and production issues.The data will be added to both modified and overall coverage charts, as an aggregated bar (no breakdown according to the apps included in the report).
The data is correlated to the coverage using the defect’s date - the production defects bar will be displayed for the date range which is the closest to the defect’s date (the last date range before the defect was created).

5. Automatic Insights
The report includes an Insights engine that alerts users to specific quality risks, such as:
Large Uncovered Modifications: Highlights instances where significant code changes occurred but were not properly covered by tests.
FAQ
Last updated
Was this helpful?

