Test Coverage

Analyze Python and JavaScript test coverage with line, branch, and function metrics.

7|1|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/eyadsibai/ltk --skill test-coverage-eyadsibai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Test Coverage
Source: https://github.com/eyadsibai/ltk/tree/main/plugins/ltk-engineering/skills/test-coverage
Command: npx skills add https://github.com/eyadsibai/ltk --skill test-coverage-eyadsibai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill helps developers understand and improve the quality of their automated tests by analyzing code coverage metrics and identifying areas that are not adequately tested.

Core Features & Use Cases

  • Measure Coverage: Calculates line, branch, and function coverage percentages.
  • Identify Gaps: Pinpoints completely untested files, partially tested functions, and specific uncovered lines.
  • Assess Test Quality: Evaluates test-to-code ratio, assertion density, and test independence.
  • Workflow Guidance: Provides steps for full coverage analysis and quick checks.
  • Use Case: After writing new code, use this skill to ensure all critical paths and edge cases are covered by existing tests, preventing regressions and ensuring software reliability.

Quick Start

Analyze the test coverage for the entire project and report any files with less than 80% coverage.

Frequently Asked Questions about Test Coverage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze test coverage gaps to find untested code in my project?

Test coverage analysis identifies untested files, partially covered functions, and specific uncovered lines. It evaluates test-to-code ratio, assertion density, and test independence to pinpoint exactly where your code validation is insufficient.

Can I measure branch and function coverage using pytest and Jest?

Yes, you can measure line, branch, and function coverage percentages using pytest for Python and Jest for JavaScript. It calculates these metrics and provides detailed reporting to assess your test suite quality and identify untested code paths.

What is the best way to identify untested files and improve test suite quality?

The best way to identify untested files is by analyzing code coverage metrics to pinpoint gaps and assess quality. This provides actionable insights for improving test suites, ensuring all critical paths and edge cases are covered to prevent regressions.

Does this test coverage analysis require any specific dependencies or environment setup?

No specific dependencies are required to use this test coverage analysis. It operates independently to evaluate your test-to-code ratio, assertion density, and test independence, providing actionable insights without needing external setup tools.

How do I run a quick coverage check for files with less than 80% coverage?

To run a quick coverage check, you can analyze the project and report any files with less than 80% coverage. This workflow guidance helps you rapidly identify under-tested areas and prioritize improvements for your test suite.