Skip to content

mutation testing support #3

Open
MohanedAtef238 wants to merge 3 commits into
galalqassas:mainfrom
MohanedAtef238:main
Open

mutation testing support #3
MohanedAtef238 wants to merge 3 commits into
galalqassas:mainfrom
MohanedAtef238:main

Conversation

@MohanedAtef238
Copy link
Copy Markdown
Collaborator

No description provided.

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.
@galalqassas galalqassas force-pushed the main branch 3 times, most recently from e3b0ba6 to 61ee875 Compare February 19, 2026 04:58
@galalqassas galalqassas force-pushed the main branch 2 times, most recently from fb2ff93 to f59939b Compare March 28, 2026 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant