coverage-enhancer

Solid

Analyze existing test suites and source code to suggest additional unit tests that improve test coverage. Use this skill when working with test files and source code to identify untested code paths, missing edge cases, uncovered branches, untested error conditions, and gaps in test coverage. Supports major testing frameworks (pytest, Jest, JUnit, Go testing, etc.) and generates targeted test suggestions based on coverage analysis.

Testing & QA 160 stars 17 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 87/100

Stars 20%
73
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Coverage Enhancer Analyze existing tests and source code to identify coverage gaps, then suggest specific additional tests to improve overall test coverage and code quality. ## Core Capabilities ### 1. Coverage Gap Analysis Identify untested areas in source code: - **Uncovered lines** - Code never executed by tests - **Uncovered branches** - Conditional paths not tested - **Uncovered functions** - Methods/functions without tests - **Missing error handling tests** - Exception paths not verified - **Untested edge cases** - Boundary conditions not covered - **Insufficient scenarios** - Limited test diversity ### 2. Existing Test Analysis Understand current test coverage by: - Parsing existing test files - Identifying tested functions and methods - Recognizing test patterns and frameworks - Detecting coverage tools in use - Analyzing test quality and completeness ### 3. Test Suggestion Generation Generate specific, actionable test recommendations: - Complete test code in the project's framework - Clear test names describing what's being tested - Setup, execution, and assertion steps - Integration with existing test structure - Prioritized by coverage impact ## Coverage Analysis Workflow ### Step 1: Analyze Existing Tests Read and understand the current test suite: **Identify test framework:** ```python # pytest def test_something(): assert result == expected # unittest class TestSomething(unittest.TestCase): def test_method(self): self.assertEqual(r...

Details

Author
ArabelaTso
Repository
ArabelaTso/Skills-4-SE
Created
6 months ago
Last Updated
today
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category