Get Untested Files
get_untested_filesIdentify files with low test coverage in your project to prioritize testing efforts. Returns files sorted by coverage percentage below a specified threshold.
Instructions
Get files with little or no test coverage.
Returns files sorted by coverage percentage (lowest first), filtered to only include files below a coverage threshold.
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)
maxCoverage: Include files with coverage at or below this % (default: 10)
limit: Maximum number of files to return (default: 20, max: 100)
Returns:
List of files sorted by coverage (lowest first)
Each file includes line/branch/function coverage metrics
Total count of files matching the criteria
IMPORTANT: Results may be dominated by certain file types (e.g., UI components) that are numerous but not necessarily the highest priority. For targeted analysis of specific code areas (backend, services, utilities), use get_coverage_for_file with path prefixes instead.
To prioritize effectively, explore the codebase to understand which code is heavily utilized (entry points, frequently-imported files, critical business logic) and then query coverage for those specific paths.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Project ID to analyze. Required. Use list_projects to find project IDs. | |
| maxCoverage | No | Maximum coverage percentage to include (default: 10 for "untested") | |
| limit | No | Maximum number of files to return (default: 20) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| message | No | ||
| totalCount | Yes | ||
| hasCoverage | Yes |