testing

Implement and document unit, E2E, and subprocess tests for cli-web CLIs.

208|42|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/ItamarZand88/CLI-Anything-WEB --skill testing-itamarzand88
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/ItamarZand88/CLI-Anything-WEB/tree/main/cli-anything-web-plugin/skills/testing
Command: npx skills add https://github.com/ItamarZand88/CLI-Anything-WEB --skill testing-itamarzand88

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Write and document tests for cli-web-* CLIs, covering the full testing lifecycle (unit, E2E, and subprocess) and recording results in TEST.md to ensure reliable software delivery.

Core Features & Use Cases

  • End-to-end testing coverage across unit, E2E, and subprocess flows for cli-web CLIs.
  • Documentation-driven tests workflow, including TEST.md Part 1 (plan) and Part 2 (results) generation.
  • Support for auth workflows, browser-delegated auth, VCR-based recordings, and test fixtures for stable parsing and RPC-like interactions.
  • Guidance on using the _resolve_cli pattern for subprocess testing and ensuring CI reliability.

Quick Start

Run the full test suite for a cli-web app starting with a plan, then implement unit, E2E, and subprocess tests, and finally document results in TEST.md.

Frequently Asked Questions about testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test CLI applications end-to-end with pytest and vcrpy?

End-to-end testing for CLI applications with pytest and vcrpy involves implementing structured test plans, VCR-based recordings, and subprocess flows. This skill enforces the _resolve_cli pattern to ensure reliable execution across local development and CI pipelines.

What is the best way to document CLI test plans and results?

Documenting CLI test plans and results requires generating a TEST.md file containing Part 1 for the test plan and Part 2 for the results. This documentation-driven workflow ensures reliable software delivery for unit, E2E, and subprocess tests.

How do I handle subprocess testing for CLI tools in a CI pipeline?

Subprocess testing for CLI tools in a CI pipeline uses the _resolve_cli subprocess pattern to ensure reliability. This approach supports stable parsing and execution across local development, CI pipelines, and pre-release validation.

Does vcrpy work with browser-delegated authentication flows in E2E tests?

Yes, vcrpy works with browser-delegated authentication flows in E2E tests by using VCR-based recordings and test fixtures. This ensures stable parsing and reliable testing for auth workflows and RPC-like interactions.

What do I need to set up before running E2E tests for CLI applications?

Before running E2E tests for CLI applications, you need pytest, vcrpy, and related tooling available in your environment. You also need a structured test plan covering unit, E2E, and subprocess flows for your cli-web apps.

Why should I use VCR-based recordings for CLI testing instead of mocking?

VCR-based recordings for CLI testing provide stable parsing and reproducible results across local development and CI pipelines. Unlike mocking, VCR recordings capture real auth workflows and RPC-like interactions for reliable pre-release validation.