rob
|
05002b766b
|
test: Add comprehensive workflow tests and improve template tests
Testing improvements completing Week 1 consolidation:
1. Add tests/test_workflow.py (6 comprehensive tests)
- test_extract_vote_value: Vote value extraction
- test_parse_votes_single_participant_single_vote: Basic parsing
- test_parse_votes_single_participant_multiple_votes: Latest vote wins
- test_parse_votes_multiple_participants: Multi-participant tracking
- test_parse_votes_malformed_lines: Error handling
- test_parse_votes_mixed_content: Real-world scenarios
2. Improve tests/test_template_meta.py
- Replace stub tests with real implementations
- test_find_template_fields: Field extraction from templates
- test_render_request_from_template: Template rendering
- test_render_request_from_template_with_existing_meta: Preserve existing data
3. Add __init__.py files for test imports
- assets/__init__.py: Make assets importable
- automation/__init__.py: Make automation importable
- Enables tests to import workflow.py and create_feature.py
4. Update pyproject.toml pytest configuration
- Add ".", "assets" to pythonpath
- Allows tests to import from automation/ and assets/
Test Results:
- All 11 tests passing
- Coverage: workflow vote parsing, template rendering, utils
- Foundation ready for Stage 2 development
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-10-30 16:20:42 -03:00 |
rob
|
4e7ad11b4c
|
feat: Implement vote parsing orchestrator and testing infrastructure
Major implementation milestone - core automation is now functional:
1. Add automation/workflow.py (Phase 1 - Vote Parsing)
- Parse VOTE: lines from discussion files
- Track latest vote per participant
- Print human-readable vote summaries
- Non-blocking (always exits 0)
- Proper error handling for missing files/git failures
- 158 lines of production-quality code
2. Add testing infrastructure
- Create tests/ directory with pytest configuration
- Add test_utils.py with actual version reading test
- Add test_template_meta.py (stubs for META system tests)
- Add test_build.py (stub for build verification)
- Configure pytest in pyproject.toml (pythonpath)
- All 4 tests passing
3. Add AGENTS.md - Developer guidelines
- Project structure and module organization
- Build, test, and development commands
- Coding style and naming conventions
- Testing guidelines
- Commit and PR guidelines
4. Update docs/DESIGN.md
- Document workflow.py implementation
- Update automation status from "planned" to "implemented"
- Clarify Phase 1 vs future phases
5. Code cleanup - Remove empty stub modules
- Delete src/cascadingdev/feature_seed.py
- Delete src/cascadingdev/fs_scaffold.py
- Delete src/cascadingdev/ramble_integration.py
- Delete src/cascadingdev/rules_seed.py
Impact:
- Users can now see vote counts in their commits
- Testing foundation enables safe refactoring
- Code is cleaner with only working modules
- Week 1 implementation goals complete
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-10-30 14:25:53 -03:00 |