find_uncovered_failure_areas
Identifies high-risk code areas by cross-referencing low test coverage with recent test failures to prioritize testing improvements.
Instructions
Find areas of code that have both low coverage AND test failures.
This cross-references test failures with coverage data to identify high-risk areas in your codebase that need attention. Files are ranked by a "risk score" calculated as: (100 - coverage%) × failureCount.
When using a user API Key (gaf_), you must provide a projectId. Use list_projects first to find available project IDs.
Parameters:
projectId: The project to analyze (required)
days: Analysis period for test failures (default: 30)
coverageThreshold: Include files below this coverage % (default: 80)
Returns:
List of risk areas sorted by risk score (highest risk first)
Each area includes: file path, coverage %, failure count, risk score, test names
Use this to prioritize which parts of your codebase need better test coverage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Project ID to analyze. Required. Use list_projects to find project IDs. | |
| days | No | Number of days to analyze for test failures (default: 30) | |
| coverageThreshold | No | Include files with coverage below this percentage (default: 80) |