cli-testing-patterns
CommunityStandardized CLI testing for Node.js and Python.
Authorvanman2024
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill standardizes CLI testing across Node.js (Jest) and Python (pytest with Click.testing.CliRunner), helping you validate command execution, exit codes, and output reliably.
Core Features & Use Cases
- Node.js testing patterns: Run CLI commands with Jest using child_process.execSync and capture stdout/stderr and exit codes.
- Python testing patterns: Use pytest with CliRunner to simulate CLI usage and inspect results.
- Templates, scripts, and examples: Access templates and example tests for unit and integration patterns, plus CI-ready scripts.
Quick Start
Copy and adapt the provided Jest and pytest templates to scaffold your tests, install dependencies, and run npm test or pytest to validate your CLI tools.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: cli-testing-patterns Download link: https://github.com/vanman2024/cli-builder/archive/main.zip#cli-testing-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.