Skip to content

Commit ff6781d

Browse files
add test-coverage structure and gap analysis
Signed-off-by: Anurag Saxena <[email protected]> add test-coverage structure and gap analysis Signed-off-by: Anurag Saxena <[email protected]> keeping go format references only Signed-off-by: Anurag Saxena <[email protected]> Removed comapre cmd, holding off for later version if needed Removed multi-language support but just Go Removed compare logic across releases Addresses codeRabbit comments Removed README_OLD.md Addressed test structure analyzer fixes and gaps add test-coverage structure and gap analysis plugin remove unwanted --exlude-only flag Addressed corerabbit comments addressed corerabbit comments removed running tests option to obtain reports and coderabbit comments addressed coderabbit comments addresses code reabbit comments addressed coderabbit comments improvements for score cards coderabbit comments coderabbit comments coderabbit comments
1 parent f71e9be commit ff6781d

27 files changed

+7179
-0
lines changed

.claude-plugin/marketplace.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@
7878
"name": "hcp",
7979
"source": "./plugins/hcp",
8080
"description": "Generate HyperShift cluster creation commands via hcp CLI from natural language descriptions"
81+
},
82+
{
83+
"name": "test-coverage",
84+
"source": "./plugins/test-coverage",
85+
"description": "Analyze code coverage and identify untested paths"
8186
}
8287
]
8388
}

PLUGINS.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This document lists all available Claude Code plugins and their commands in the
1515
- [Openshift](#openshift-plugin)
1616
- [Prow Job](#prow-job-plugin)
1717
- [Session](#session-plugin)
18+
- [Test Coverage](#test-coverage-plugin)
1819
- [Utils](#utils-plugin)
1920
- [Yaml](#yaml-plugin)
2021

@@ -172,6 +173,16 @@ A plugin to save and resume conversation sessions across long time intervals
172173

173174
See [plugins/session/README.md](plugins/session/README.md) for detailed documentation.
174175

176+
### Test Coverage Plugin
177+
178+
Analyze code coverage and identify untested paths
179+
180+
**Commands:**
181+
- **`/test-coverage:analyze` `<path-or-url> [--output <path>] [--priority <level>] [--test-structure-only]`** - Analyze test code structure without running tests to identify coverage gaps
182+
- **`/test-coverage:gaps` `<test-file-or-url> [--output <path>]`** - Identify E2E test scenario gaps in OpenShift/Kubernetes tests (component-agnostic)
183+
184+
See [plugins/test-coverage/README.md](plugins/test-coverage/README.md) for detailed documentation.
185+
175186
### Utils Plugin
176187

177188
A generic utilities plugin serving as a catch-all for various helper commands and agents

docs/data.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,38 @@
603603
}
604604
],
605605
"has_readme": true
606+
},
607+
{
608+
"name": "test-coverage",
609+
"description": "Analyze code coverage and identify untested paths",
610+
"version": "0.0.1",
611+
"commands": [
612+
{
613+
"name": "analyze",
614+
"description": "Analyze test code structure without running tests to identify coverage gaps",
615+
"synopsis": "/test-coverage:analyze <path-or-url> [--output <path>] [--priority <level>] [--test-structure-only]",
616+
"argument_hint": "<path-or-url> [--output <path>] [--priority <level>] [--test-structure-only]"
617+
},
618+
{
619+
"name": "gaps",
620+
"description": "Identify E2E test scenario gaps in OpenShift/Kubernetes tests (component-agnostic)",
621+
"synopsis": "bash",
622+
"argument_hint": "<test-file-or-url> [--output <path>]"
623+
}
624+
],
625+
"skills": [
626+
{
627+
"name": "Test Structure Analysis",
628+
"id": "analyze",
629+
"description": "Analyze test code structure directly to provide coverage analysis"
630+
},
631+
{
632+
"name": "Component-Aware Test Gap Analysis",
633+
"id": "gaps",
634+
"description": "Intelligently identify missing test coverage based on component type"
635+
}
636+
],
637+
"has_readme": true
606638
}
607639
]
608640
}

plugins/__init__.py

Whitespace-only changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "test-coverage",
3+
"description": "Analyze code coverage and identify untested paths",
4+
"version": "0.0.1",
5+
"author": {
6+
"name": "github.com/openshift-eng"
7+
}
8+
}

0 commit comments

Comments
 (0)