test-writing

Generate pytest and vitest/jest tests before implementation for TDD workflows.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/zeeshan080/ezee-erp --skill test-writing-zeeshan080
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-writing
Source: https://github.com/zeeshan080/ezee-erp/tree/main/.claude/skills/test-writing
Command: npx skills add https://github.com/zeeshan080/ezee-erp --skill test-writing-zeeshan080

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

## What problem does it solve? This Skill enables teams to create comprehensive tests before implementing code, supporting Test-Driven Development (TDD) and reducing defects by guiding test design early.

## Core Features & Use Cases

  • Generate backend unit tests (pytest) and frontend tests (vitest/jest) from specs and contracts.
  • Propose fixtures, mocks, and assertion strategies tailored to the component type.
  • Align tests with acceptance criteria and provide a structured workflow from red to green.
  • Provide pattern guidance for unit, integration, component, and end-to-end tests in common frameworks.

### Quick Start Use /sp.test with a feature description to generate tests for backend (pytest) and frontend (vitest/jest) following the TDD workflow.

Frequently Asked Questions about test-writing

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

FAQPage Schema
How do I generate pytest and vitest test cases before writing implementation code?

To generate pytest and vitest test cases before implementation, you provide a feature description to generate tests following a Test-Driven Development workflow from red to green. This approach automates test creation, proposing tailored fixtures, mocks, and assertion strategies.

What is Test-Driven Development pattern guidance for unit and integration tests?

Test-Driven Development pattern guidance provides structured templates for unit, integration, component, and end-to-end tests. It defines framework-specific assertion strategies and fixture setups to align tests with acceptance criteria and reduce defects early.

Can I use test-writing patterns for both frontend and backend testing scenarios?

Yes, you can use these test-writing patterns for both frontend and backend testing scenarios. The patterns support backend pytest unit tests and frontend vitest or jest component tests, covering both contexts comprehensively.

How do I create fixtures and mocks for component and E2E testing?

To create fixtures and mocks for component and E2E testing, the pattern guidance proposes tailored setups based on the component type. It generates these structures from provided specs and contracts to align with required acceptance criteria.

What's the best way to align generated tests with acceptance criteria in TDD?

The best way to align generated tests with acceptance criteria in TDD is by generating tests directly from specs and contracts. This ensures the test patterns and assertion strategies strictly satisfy the predefined requirements throughout the workflow.