markitect-main/tests
tegwick 0982e771e4 feat: implement batch processing and recursive operations (issue #17)
Complete implementation of batch processing capabilities for MarkiTect CLI:

New CLI Commands:
- markitect ingest-dir: Process all markdown files in directory with recursive support
- markitect batch-process: Process files matching glob patterns
- markitect recursive: Recursive processing with depth control

Core Features:
- Sophisticated batch processing engine with progress tracking
- Multiple error handling strategies (stop, continue, skip)
- Recursive directory traversal with configurable depth limits
- Glob pattern matching for flexible file selection
- Progress feedback with detailed processing statistics
- Integration with existing database and caching systems

Technical Implementation:
- BatchProcessor class with modular architecture
- ProgressTracker for real-time user feedback
- Comprehensive error handling and edge case management
- Support for multiple operations (ingest, status, validate)
- Depth-controlled recursive search with proper boundary handling
- Permission error resilience and graceful degradation

Testing:
- 29 comprehensive tests covering all functionality
- Edge cases: empty directories, hidden files, permission errors
- CLI integration tests with mocked database operations
- Depth logic validation and boundary condition testing
- Error handling scenarios and recovery mechanisms

All acceptance criteria fulfilled:
 Directory and recursive processing
 Glob pattern support for file selection
 Progress tracking and user feedback
 Error handling with continuation options
 Comprehensive test coverage

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-03 10:45:43 +02:00
..
.issues feat: Integrate Requirements Engineering Agent and fix Issue #59 test failures 2025-10-02 00:45:06 +02:00
e2e feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
fixtures feat: Complete Issue #41 - Add TOML frontmatter support 2025-10-02 09:32:16 +02:00
integration chore: Remove async demonstration tests 2025-09-27 02:14:23 +02:00
unit feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
utils feat: Implement comprehensive Testing Architecture Enhancement 2025-09-26 22:36:35 +02:00
conftest.py feat: Implement comprehensive Testing Architecture Enhancement 2025-09-26 22:36:35 +02:00
requirements-test.txt feat: Implement comprehensive Testing Architecture Enhancement 2025-09-26 22:36:35 +02:00
test_cli_consolidation.py feat: Complete test-fixing agent implementation and CLI consolidation 2025-10-03 01:48:03 +02:00
test_cli_integration.py feat: Complete Issue #65 Template Engine Foundation + Fix CLI Regression 2025-10-02 15:33:32 +02:00
test_content_commands.py feat: Complete Issue #38 TDD8 Cycle 1 - Content command family implementation 2025-10-02 08:14:38 +02:00
test_contentmatter_commands.py feat: Complete Issue #38 - Full MarkdownMatters CLI implementation with TDD8 methodology 2025-10-02 09:14:24 +02:00
test_db_commands_output_formatting.py refactor: Remove circular test dependencies and meta-testing anti-patterns 2025-10-01 21:05:36 +02:00
test_example.py feat: implement tddai Python library for TDD workspace management 2025-09-22 02:04:19 +02:00
test_frontmatter_commands.py feat: Complete Issue #38 - Full MarkdownMatters CLI implementation with TDD8 methodology 2025-10-02 09:14:24 +02:00
test_issue_5_schema_generation.py refactor: Remove circular test dependencies and meta-testing anti-patterns 2025-10-01 21:05:36 +02:00
test_issue_6_cli_integration.py feat: Complete Issue #6 - Generate Markdown Stub from Schema 2025-09-30 03:31:48 +02:00
test_issue_6_stub_generation.py feat: Complete Issue #6 - Generate Markdown Stub from Schema 2025-09-30 03:31:48 +02:00
test_issue_7_schema_validation.py refactor: Remove circular test dependencies and meta-testing anti-patterns 2025-10-01 21:05:36 +02:00
test_issue_8_validation_errors.py refactor: Remove circular test dependencies and meta-testing anti-patterns 2025-10-01 21:05:36 +02:00
test_issue_11_complete.py feat: implement tddai Python library for TDD workspace management 2025-09-22 02:04:19 +02:00
test_issue_17_batch_processing.py feat: implement batch processing and recursive operations (issue #17) 2025-10-03 10:45:43 +02:00
test_issue_38_command_restructuring.py refactor: Remove circular test dependencies and meta-testing anti-patterns 2025-10-01 21:05:36 +02:00
test_issue_39_db_command_reorganization.py refactor: Remove deprecated query and schema commands and update all tests 2025-09-30 23:33:43 +02:00
test_issue_40_associated_files.py feat: Complete Issue #40 - Associated Files Management with Interactive vs Automation Mode System 2025-09-30 13:09:37 +02:00
test_issue_40_cli_integration.py fix: Update tests to match schema reference metadata feature 2025-10-01 12:48:48 +02:00
test_issue_46_schema_generation_outline.py feat: Implement test timeout infrastructure and fix failing tests 2025-10-01 18:07:05 +02:00
test_issue_50_metaschema_definition.py test: Add metaschema definition tests for Issue #50 2025-10-01 08:25:08 +02:00
test_issue_51_outline_mode.py feat: Complete Issue #51 - Add outline mode to schema generation 2025-10-01 02:59:40 +02:00
test_issue_52_heading_text_capture.py feat: Complete Issue #52 - Capture actual heading text in schemas 2025-10-01 08:03:11 +02:00
test_issue_54_content_instructions.py test: Add comprehensive test suite for Issue #54 content instructions 2025-10-01 08:24:39 +02:00
test_issue_55_schema_based_draft_generation.py fix: Update tests to match schema reference metadata feature 2025-10-01 12:48:48 +02:00
test_issue_56_data_driven_draft_generation.py feat: Implement Issue #56 - Data-driven multiple draft generation 2025-10-01 12:13:43 +02:00
test_issue_59_cli_interface.py feat: Integrate Requirements Engineering Agent and fix Issue #59 test failures 2025-10-02 00:45:06 +02:00
test_issue_59_gitea_plugin.py feat: Complete Issue #59 - Unified issue management CLI with plugin architecture 2025-10-01 23:19:48 +02:00
test_issue_59_local_plugin.py feat: Complete test-fixing agent implementation and CLI consolidation 2025-10-03 01:48:03 +02:00
test_issue_59_plugin_manager.py feat: Integrate Requirements Engineering Agent and fix Issue #59 test failures 2025-10-02 00:45:06 +02:00
test_issue_65_template_integration.py feat: Complete Issue #65 Template Engine Foundation + Fix CLI Regression 2025-10-02 15:33:32 +02:00
test_issue_65_template_parser.py feat: Complete Issue #65 Template Engine Foundation + Fix CLI Regression 2025-10-02 15:33:32 +02:00
test_issue_65_template_substitution.py feat: Complete Issue #65 Template Engine Foundation + Fix CLI Regression 2025-10-02 15:33:32 +02:00
test_l1_presentation_cli_interface.py feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
test_l2_application_feature_workflows.py feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
test_l2_application_tdd_workflows.py refactor: Remove circular test dependencies and meta-testing anti-patterns 2025-10-01 21:05:36 +02:00
test_l2_application_workspace_validation.py refactor: Remove circular test dependencies and meta-testing anti-patterns 2025-10-01 21:05:36 +02:00
test_l2_application_workspace_workflows.py feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
test_l3_domain_issue_models.py feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
test_l3_domain_issue_services.py feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
test_l3_domain_performance_validation.py feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
test_l3_domain_project_models.py feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
test_l4_service_ast_analysis.py refactor: Remove deprecated query and schema commands and update all tests 2025-09-30 23:33:43 +02:00
test_l4_service_document_management.py refactor: Remove circular test dependencies and meta-testing anti-patterns 2025-10-01 21:05:36 +02:00
test_l4_service_document_modification.py feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
test_l4_service_output_formatting.py refactor: Remove deprecated query and schema commands and update all tests 2025-09-30 23:33:43 +02:00
test_l4_service_schema_generation.py refactor: Remove circular test dependencies and meta-testing anti-patterns 2025-10-01 21:05:36 +02:00
test_l5_infrastructure_ast_processing.py feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
test_l5_infrastructure_cache_management.py fix: resolve all test failures and improve test infrastructure 2025-10-03 05:37:17 +02:00
test_l5_infrastructure_cache_monitoring.py feat: Establish CLI subsystem *-stats command naming convention 2025-09-30 22:13:07 +02:00
test_l5_infrastructure_configuration.py refactor: Remove circular test dependencies and meta-testing anti-patterns 2025-10-01 21:05:36 +02:00
test_l5_infrastructure_database_queries.py refactor: Remove deprecated query and schema commands and update all tests 2025-09-30 23:33:43 +02:00
test_l5_infrastructure_test_framework.py feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
test_l6_integration_gitea_api.py feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
test_l6_integration_issue_creation.py feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
test_l7_foundation_database_core.py feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
test_l7_foundation_markdown_parsing.py feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
test_markdownmatters_integration.py feat: Complete Issue #38 - Full MarkdownMatters CLI implementation with TDD8 methodology 2025-10-02 09:14:24 +02:00
test_mock_compatibility.py feat: Integrate Requirements Engineering Agent and fix Issue #59 test failures 2025-10-02 00:45:06 +02:00
test_schema_visualization.py fix: resolve all test failures and improve test infrastructure 2025-10-03 05:37:17 +02:00