Commit c996e48
committed
feat(test-harness): implement comprehensive test definitions for 9 search & analysis tools
Phase 1 - Search Tools Enhancement (Complete):
✅ find_files - 10 comprehensive test scenarios with pattern matching, filtering, error handling
✅ content_stats - 9 comprehensive test scenarios with language breakdown, quality metrics
✅ detect_patterns - 13 comprehensive test scenarios with design patterns, anti-patterns, language-specific analysis
Phase 2 - Analysis Tools Implementation (5 of 13 complete):
✅ analyze_security - 14 comprehensive test scenarios with OWASP Top 10, language-specific security patterns
✅ analyze_performance - 15 comprehensive test scenarios with algorithmic complexity, memory analysis, I/O performance
✅ analyze_complexity - 17 comprehensive test scenarios with cyclomatic, cognitive, Halstead complexity metrics
✅ find_duplicates - 18 comprehensive test scenarios with similarity algorithms, cross-language detection
✅ find_unused_code - 18 comprehensive test scenarios with imports, functions, variables, classes analysis
All implementations include:
- Parameter validation with edge cases and error conditions
- Language-specific analysis patterns (Rust, Python, JavaScript)
- Performance testing with timing constraints
- File filtering and scope control
- Detailed reporting and statistics options
- Real MCP tool execution (no placeholders)
Progress: 9/17 tools complete (53% of Issue #92)
Remaining: 8 tools need comprehensive implementations
addresses #921 parent 823c540 commit c996e48
4 files changed
Lines changed: 1092 additions & 27 deletions
File tree
- .cursor/rules
- crates/codeprism-test-harness/src/reporting
- tests/mcp_tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
| |||
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
| 200 | + | |
199 | 201 | | |
200 | 202 | | |
201 | 203 | | |
| |||
242 | 244 | | |
243 | 245 | | |
244 | 246 | | |
| 247 | + | |
245 | 248 | | |
246 | 249 | | |
247 | 250 | | |
| |||
250 | 253 | | |
251 | 254 | | |
252 | 255 | | |
| 256 | + | |
253 | 257 | | |
254 | 258 | | |
255 | 259 | | |
| |||
287 | 291 | | |
288 | 292 | | |
289 | 293 | | |
290 | | - | |
| 294 | + | |
291 | 295 | | |
292 | 296 | | |
293 | 297 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| |||
0 commit comments