home/categories/testing/https-deeplearning-ai-sc-agent-skills-files-l6-claude-skills-generating-cli-tests-skill-md
testingtesting-security

generating-cli-tests

Generate pytest tests for Typer CLI commands. Includes fixtures (temp_storage, sample_data), CliRunner patterns, confirmation handling (y/n/--force), and edge case coverage. Use when user asks to "write tests for", "test my CLI", "add test coverage", or any CLI + test request.

https-deeplearning-ai
maintainer
https-deeplearning-ai
更新於 1/28/2026
星標
1004
分支
423
quick start

Installation and usage

Generate pytest tests for Typer CLI commands. Includes fixtures (temp_storage, sample_data), CliRunner patterns, confirmation handling (y/n/--force), and edge case coverage. Use when user asks to "write tests for", "test my CLI", "add test coverage", or any CLI + test request.

安裝
$ install --globalskills.sh
使用

安裝後,您可以通過在終端運行以下命令來使用此技能:

skills use generating-cli-tests