Generates unit tests, test fixtures, and mocks across Jest, Pytest, JUnit, Vitest, and Mocha. Analyzes test coverage gaps and guides red-green-refactor workflows for test-driven development. Use when writing tests, improving coverage, practicing TDD, or generating mocks for supported testing frameworks.

skills.sh installs
1K
GitHub stars
29.5K
last updated
Aug 21, 2026

Install

$ npx -y skills add alirezarezvani/claude-skills --skill tdd-guide --agent claude-code

Installs into .claude/skills of the current project.

Files

TDD Guide

Test-driven development skill for generating tests, analyzing coverage, and guiding red-green-refactor workflows across Jest, Pytest, JUnit, and Vitest.


Workflows

Generate Tests from Code

  1. Provide source code (TypeScript, JavaScript, Python, Java)
  2. Specify target framework (Jest, Pytest, JUnit, Vitest)
  3. Run test_generator.py with requirements
  4. Review generated test stubs
  5. Validation: Tests compile and cover happy path, error cases, edge cases

Analyze Coverage Gaps

  1. Generate coverage report from test runner (npm test -- --coverage)
  2. Run coverage_analyzer.py on LCOV/JSON/XML report
  3. Review prioritized gaps (P0/P1/P2)
  4. Generate missing tests for uncovered paths
  5. Validation: Coverage meets target threshold (typically 80%+)

TDD New Feature

  1. Write failing test first (RED)
  2. Run tdd_workflow.py --phase red to validate
  3. Implement minimal code to pass (GREEN)
  4. Run tdd_workflow.py --phase green to validate
  5. Refactor while keeping tests green (REFACTOR)
  6. Validation: All tests pass after each cycle

Examples

Test Generation — Input → Output (Pytest)

Sponsors

Details

Repository
github.com/alirezarezvani/claude-skills
Categories
Testing & QA, Documentation, Code Review & Quality, Python
First seen
May 16, 2026

More from alirezarezvani/claude-skills

All 267
1asyrafhussin avatartesting-best-practicesasyrafhussin/agent-skillsUnit testing, integration testing, and test-driven development principles. Use when writing tests, reviewing test code, improving test coverage, or setting up t957skills.sh installs
2pluginagentmarketplace avatarjava-testingpluginagentmarketplace/custom-plugin-javaTest Java applications - JUnit 5, Mockito, integration testing, TDD patterns909skills.sh installs
3mindrally avatarjestmindrally/skillsJest testing best practices for JavaScript and TypeScript applications, covering test structure, mocking, and assertion patterns.896skills.sh installs
4encoredev avatarencore-testingencoredev/skillsWrite or run automated tests for Encore.ts code with `encore test` and vitest/jest. Covers isolated per-test databases, calling handlers directly, and `describe829skills.sh installs
5testdino-hq avatarplaywright-clitestdino-hq/playwright-skillAutomates browser interactions for testing and validating your own web applications using playwright-cli. Use when you need terminal-first browser control for n815skills.sh installs
6hairyf avatarvitesthairyf/skillsVitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filteri789skills.sh installs