yusyus
|
41fdafa13d
|
test: Add comprehensive E2E tests for analyze command
Adds 13 end-to-end tests that verify real-world usage of the new
'skill-seekers analyze' command with actual subprocess execution.
Test Coverage:
- Command discoverability (appears in help)
- Subcommand help text
- Quick preset execution
- Custom output directory
- Skip flags functionality
- Invalid directory handling
- Missing required arguments
- Backward compatibility (old --depth flag)
- Output structure validation
- References generation
- Old command still works (skill-seekers-codebase)
- Integration with verbose flag
- Multi-step analysis workflow
Key Features Tested:
✅ Real command execution via subprocess
✅ Actual file system operations
✅ Output validation (SKILL.md generation)
✅ Error handling for invalid inputs
✅ Backward compatibility with old flags
✅ Help text and documentation
All 13 E2E tests: PASSING ✅
Test Results:
- test_analyze_help_shows_command: PASSED
- test_analyze_subcommand_help: PASSED
- test_analyze_quick_preset: PASSED
- test_analyze_with_custom_output: PASSED
- test_analyze_skip_flags_work: PASSED
- test_analyze_invalid_directory: PASSED
- test_analyze_missing_directory_arg: PASSED
- test_backward_compatibility_depth_flag: PASSED
- test_analyze_generates_references: PASSED
- test_analyze_output_structure: PASSED
- test_old_command_still_exists: PASSED
- test_analyze_then_check_output: PASSED
- test_analyze_verbose_flag: PASSED
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-01-29 22:38:58 +03:00 |
|