test: add E2E smoke tests for skill CLI#363
Conversation
…L parsing New tests: - `skill create → test → remove lifecycle` — full lifecycle in tmpdir - `cannot remove git-tracked skill` — verifies git protection works - `symlinks are skipped during install copy` — security regression test - `GitHub URL normalization` — extracts owner/repo, strips .git suffix Total: 26 tests, 91 assertions (was 21/75). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
Disabled knowledge base sources:
📝 WalkthroughWalkthroughAdded comprehensive end-to-end smoke tests for the skill CLI covering skill lifecycle management, git-tracked file protection, symlink safety during file copying, and GitHub URL normalization helper functions. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What does this PR do?
Adds committed E2E smoke tests that were previously only run as ad-hoc bash commands. These cover critical safety and lifecycle paths.
New tests (5):
skill create → test → remove lifecycle— full lifecycle in isolated tmpdircannot remove git-tracked skill— verifies git protection (the dbt-develop bug)symlinks are skipped during install copy— security regression testGitHub URL normalization— extracts owner/repo from web URLs.git suffix stripping— prevents double-appendTotal: 26 tests, 91 assertions (was 21/75).
Type of change
Issue for this PR
Closes #362
How did you verify your code works?
bun test test/cli/skill.test.ts— 26 pass, 0 failChecklist
Summary by CodeRabbit