Adds end-to-end integration tests for both MCP and CLI interfaces: Test Coverage (24 total tests, 23 passed, 1 skipped): Unit Tests (test_install_skill.py - 13 tests): - Input validation (2 tests) - Dry-run mode (2 tests) - Mandatory enhancement verification (1 test) - Phase orchestration with mocks (2 tests) - Error handling (3 tests) - Options combinations (3 tests) E2E Tests (test_install_skill_e2e.py - 11 tests): 1. TestInstallSkillE2E (5 tests) - Full workflow with existing config (no upload) - Full workflow with config fetch phase - Dry-run preview mode - Scrape phase error handling - Enhancement phase error handling 2. TestInstallSkillCLI_E2E (5 tests) - CLI dry-run via direct function call - CLI validation error handling - CLI help command - Full CLI workflow with mocks - Unified CLI command (skipped due to subprocess asyncio issue) 3. TestInstallSkillE2E_RealFiles (1 test) - Real scraping with mocked enhancement/upload Features Tested: - ✅ MCP tool interface (install_skill_tool) - ✅ CLI interface (skill-seekers install) - ✅ Config type detection (name vs path) - ✅ 5-phase workflow orchestration - ✅ Mandatory enhancement enforcement - ✅ Dry-run mode - ✅ Error handling at each phase - ✅ Real file I/O operations - ✅ Help/validation commands Test Approach: - Minimal mocking (only enhancement/upload for speed) - Real config files and file operations - Direct function calls (more reliable than subprocess) - Comprehensive error scenarios Run Tests: pytest tests/test_install_skill.py tests/test_install_skill_e2e.py -v Results: 23 passed, 1 skipped in 0.39s 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
19 KiB
19 KiB