mutation testing support #3
Open
MohanedAtef238 wants to merge 3 commits into
Open
Conversation
Introduce structured coverage analysis and refactor code-definition extraction. - Add CodeDefinition dataclass and extract_code_definitions() to pipeline.code_utils to parse AST and return function/class ranges (supports recursive extraction). - Add new pipeline/coverage.py to analyze coverage.json, map executed/missing lines to code definitions, produce FileCoverageReport and FunctionCoverageReport, format uncovered areas for LLMs, and compute overall percentage. - Update file_utils.read_file_contents_chunked() to use extract_code_definitions() and convert results to the existing dict format for chunking compatibility. - Update test_runner.parse_coverage_json() to call the new coverage analyzer and return a dict with percentage, uncovered_areas_text, and detailed_reports; propagate these fields through run_tests results. - Update pythonTestingPipeline to prefer uncovered_areas_text from test results, falling back to previous extraction from output.
feat: implement GUI coverage viewer and refine pipeline analysis : - Added CoverageViewer widget with file breakdowns and source code highlighting. - Integrated Coverage tab into main GUI with auto-load on pipeline completion. - Improved coverage accuracy by correctly handling excluded and non-executable lines. - Added "Open in VSCode" integration for uncovered code segments.
Integrate mutation testing into the Python testing pipeline using mutmut and surface mutation metrics. Adds a new pipeline/mutation_testing.py module with helpers to decide when to run mutation tests, run mutmut, parse results, and format feedback. Introduces MutantInfo and MutationCoverageReport models and extends TestEvaluationOutput to include mutation_score and mutation_report. Updates test runner to optionally run mutation testing, thread mutation results (score, report, feedback) through evaluation and dashboard generation, and update prompts/guidelines to include mutation score and survived-mutant recommendations.
e3b0ba6 to
61ee875
Compare
fb2ff93 to
f59939b
Compare
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.
No description provided.