Feat/smart change detection devops costs#17
Merged
aleksandardodevski111 merged 6 commits intoJan 26, 2026
Conversation
added 6 commits
January 9, 2026 17:04
- Added analyzeTestQuality() to analyze existing tests and suggest improvements - Detects missing test scenarios: error handling, edge cases, async ops, validation, state changes - Generates enhancement code suggestions for Jest, Mocha, Pytest, Vitest - Integrated into smart change detection workflow - Displays test enhancements separately from new test suggestions in CLI - Checks for: * Error handling and exception tests * Edge case and boundary value tests * Async operation tests * Input validation tests * Return value verification * State change and side effect tests * Integration test suggestions - Enhanced TestSuggestion interface with isEnhancement and existingTestFile flags - Provides actionable code snippets to improve test coverage and quality
… flag - Cache project classification in database to avoid re-running on every analysis (saves tokens) - Add project_classification column to pr_analysis table with migration - Add getProjectClassification() function to retrieve cached results - Add --show-classification CLI flag to display classification on demand - Remove automatic console output for classification (now silent by default) - Update README with new flag documentation - Update AgentResult type with projectClassification field
Resolved conflicts: - src/db/index.ts: Keep both project_classification and peer review fields - src/agents/pr-analyzer-agent.ts: Keep MCP chatModel support from main - Added @modelcontextprotocol/sdk dependency
## Features - Added coverage-analyzer.ts with nyc/Istanbul coverage parsing (LCOV, JSON formats) - Added ESLint static analysis integration - New CLI flags: * --scan-coverage: Run test coverage analysis * --show-coverage: Display coverage metrics * --show-static-analysis: Run ESLint analysis * --peer-review: Enable Jira peer review (moved from config-only) ## Coverage Analysis - Parses coverage-summary.json and lcov.info reports - Identifies files with low coverage (<50%) - Suggests uncovered functions and branches for testing - Formats coverage report for CLI output ## Static Analysis - Runs ESLint on project files - Reports errors, warnings, and fixable issues - Integrates with existing test enhancement suggestions ## Technical Details - Created src/tools/coverage-analyzer.ts with full TypeScript types - Exported types: CoverageMetrics, FileCoverage, UncoveredCode, CoverageAnalysis - Integrated into analyze command flow
Added documentation for new CLI flags: - --scan-coverage: Run test coverage analysis - --show-coverage: Display coverage metrics - --show-static-analysis: Run ESLint analysis - --peer-review: Enable Jira integration - Example for full analysis with all static analysis features
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Features
1. Test Enhancement Suggestions
2. Project Classification Caching (Token Optimization)
--show-classificationflag to display on demand3. Smart Change Detection & DevOps Cost Estimation
Bug Fixes