-
-
Notifications
You must be signed in to change notification settings - Fork 776
chore: Increase backend test code coverage to 80% #431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
AlexMadera
wants to merge
5
commits into
develop
Choose a base branch
from
chore-increase-test-coverage
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,473
β2
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e91711b
chore: bumb code coverage to 50%
AlexMadera 72e3307
code coverage at 81%
AlexMadera e1887b6
improve
AlexMadera 2563282
Merge branch 'develop' into chore-increase-test-coverage
AlexMadera 73f889c
Merge branch 'develop' into chore-increase-test-coverage
AndyMik90 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,217 @@ | ||
| [run] | ||
| source = . | ||
| omit = | ||
| # CLI entry points - require interactive input | ||
| cli/*.py | ||
|
|
||
| # Agent runners - require Claude SDK sessions | ||
| runners/*.py | ||
| runners/**/*.py | ||
|
|
||
| # Agent implementations - require SDK sessions | ||
| agents/coder.py | ||
| agents/planner.py | ||
| agents/session.py | ||
| agents/memory_manager.py | ||
| agents/tools_pkg/tools/*.py | ||
| agents/utils.py | ||
| agents/test_refactoring.py | ||
|
|
||
| # Graphiti integration - requires database | ||
| integrations/graphiti/queries_pkg/*.py | ||
| integrations/graphiti/providers_pkg/**/*.py | ||
| integrations/graphiti/memory.py | ||
| integrations/graphiti/config.py | ||
|
|
||
| # Linear integration - requires external API | ||
| integrations/linear/*.py | ||
| linear_updater.py | ||
|
|
||
| # Main entry points | ||
| run.py | ||
| spec_runner.py | ||
| agent.py | ||
|
|
||
| # Test files | ||
| **/test_*.py | ||
| **/*_test.py | ||
| tests/*.py | ||
|
|
||
| # Generated/config files | ||
| __init__.py | ||
| conftest.py | ||
|
|
||
| # UI interactive components | ||
| ui/menu.py | ||
| ui/statusline.py | ||
| ui/main.py | ||
| ui/progress.py | ||
| ui/status.py | ||
| ui/spinner.py | ||
|
|
||
| # Spec pipeline runners (require SDK) | ||
| spec/pipeline/orchestrator.py | ||
| spec/pipeline/agent_runner.py | ||
| spec/validate_spec.py | ||
| spec/discovery.py | ||
| spec/context.py | ||
|
|
||
| # Services requiring SDK | ||
| services/context.py | ||
| services/orchestrator.py | ||
|
|
||
| # Task logger interactive components | ||
| task_logger/main.py | ||
| task_logger/capture.py | ||
| task_logger/streaming.py | ||
|
|
||
| # Analysis modules requiring file system access | ||
| analysis/insight_extractor.py | ||
| analysis/analyzers/project_analyzer_module.py | ||
| analysis/project_analyzer.py | ||
| analysis/analyzer.py | ||
|
|
||
| # Task logger components requiring sessions | ||
| task_logger/logger.py | ||
|
|
||
| # Spec phase validators (require SDK) | ||
| spec/phases/planning_phases.py | ||
| spec/phases/requirements_phases.py | ||
| spec/phases/utils.py | ||
|
|
||
| # Spec validators requiring file system | ||
| spec/validate_pkg/validators/*.py | ||
| spec/validate_pkg/auto_fix.py | ||
|
|
||
| # Commit message generation | ||
| commit_message.py | ||
|
|
||
| # Core client (requires SDK) | ||
| core/client.py | ||
| core/auth.py | ||
| client.py | ||
|
|
||
| # QA modules (require SDK sessions) | ||
| qa/fixer.py | ||
| qa/loop.py | ||
| qa/qa_loop.py | ||
| qa/reviewer.py | ||
|
|
||
| # Query memory (requires database) | ||
| query_memory.py | ||
|
|
||
| # Review modules (require SDK/interactive) | ||
| review/formatters.py | ||
| review/main.py | ||
| review/reviewer.py | ||
|
|
||
| # Prompt generation (require SDK context) | ||
| prompts_pkg/project_context.py | ||
| prompts_pkg/prompt_generator.py | ||
| prompts_pkg/prompts.py | ||
|
|
||
| # Spec modules (require SDK sessions) | ||
| spec/compaction.py | ||
| spec/requirements.py | ||
| spec/phases.py | ||
| spec/pipeline.py | ||
|
|
||
| # Security main entry (interactive) | ||
| security/main.py | ||
| security.py | ||
|
|
||
| # Context modules (require SDK context) | ||
| context/*.py | ||
|
|
||
| # Ideation modules (require SDK) | ||
| ideation/*.py | ||
|
|
||
| # Memory modules (require database) | ||
| memory/*.py | ||
|
|
||
| # Core workspace (require git worktrees) | ||
| core/workspace.py | ||
| core/workspace/*.py | ||
| core/progress.py | ||
| core/debug.py | ||
| core/simple_client.py | ||
|
|
||
| # Merge modules (require git/SDK) | ||
| merge/tracker_cli.py | ||
| merge/semantic_analysis/js_analyzer.py | ||
| merge/semantic_analysis/python_analyzer.py | ||
| merge/timeline_tracker.py | ||
| merge/file_evolution.py | ||
| merge/auto_merger.py | ||
| merge/ai_resolver.py | ||
| merge/install_hook.py | ||
| merge/conflict_resolver.py | ||
| merge/conflict_explanation.py | ||
|
|
||
| # Ollama model detector (requires Ollama) | ||
| ollama_model_detector.py | ||
|
|
||
| # Planner library (require SDK) | ||
| planner_lib/*.py | ||
|
|
||
| # Prediction modules (require SDK) | ||
| prediction/*.py | ||
|
|
||
| # Graphiti migrations (require database) | ||
| integrations/graphiti/migrate_embeddings.py | ||
| integrations/graphiti/providers.py | ||
|
|
||
| # Linear config (require external API) | ||
| linear_config.py | ||
| linear_integration.py | ||
|
|
||
| # Init modules | ||
| init.py | ||
|
|
||
| # Phase config (require SDK context) | ||
| phase_config.py | ||
|
|
||
| # Analysis modules (require file system access) | ||
| analysis/analyzers/database_detector.py | ||
| analysis/analyzers/framework_analyzer.py | ||
| analysis/analyzers/route_detector.py | ||
| analysis/ci_discovery.py | ||
|
|
||
| # More merge modules (require git/SDK) | ||
| merge/ai_resolver/*.py | ||
| merge/auto_merger/helpers.py | ||
| merge/auto_merger/strategies/*.py | ||
| merge/semantic_analysis/comparison.py | ||
| merge/semantic_analyzer.py | ||
| merge/timeline_git.py | ||
| merge/timeline_persistence.py | ||
| merge/prompts.py | ||
| merge/file_merger.py | ||
| merge/git_utils.py | ||
|
|
||
| # Review module (require git) | ||
| review/diff_analyzer.py | ||
|
|
||
| # Security hooks (require project context) | ||
| security/hooks.py | ||
|
|
||
| # Spec writer (require SDK) | ||
| spec/writer.py | ||
|
|
||
| # Task logger storage (require file system) | ||
| task_logger/storage.py | ||
|
|
||
| # Agent registry (require SDK) | ||
| agents/tools_pkg/registry.py | ||
|
|
||
| [report] | ||
| exclude_lines = | ||
| pragma: no cover | ||
| def __repr__ | ||
| raise NotImplementedError | ||
| if __name__ == .__main__.: | ||
| if TYPE_CHECKING: | ||
| @abstractmethod | ||
| pass | ||
|
|
||
| show_missing = true | ||
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove security/hooks.py from coverage exclusions.
The file
security/hooks.pyis excluded from coverage with the rationale "require project context", buttests/test_security_hooks.pysuccessfully tests thevalidate_commandfunction from this module. This suggests the module is testable and should be included in coverage metrics. Excluding tested code undermines the PR's goal of increasing coverage to 75%.π Proposed fix
π Committable suggestion
π€ Prompt for AI Agents